Example Walk-through

  1. start with empty project 1 template
  2. show them how to set line endings in clion
  3. Open train file and copy first 10 lines & paste into a new file
  4. Add new sample file to CMakeLists.txt
  5. Simple Version 1:
    1. open file and read each line out and print to terminal.
    2. use getline() with no 3rd param.
  6. Simple Version 2:
    1. separate each section of the csv file out and skip the middle chunks that we aren’t using.
    2. use getline(buffer, 300, ','); to stop at commas

File I/O