From the course: Code Clinic: C++

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Import CSV data

Import CSV data - C++ Tutorial

From the course: Code Clinic: C++

Start my 1-month free trial

Import CSV data

- [Instructor] The provided data for this challenge comes as a comma-separated value or CSV file, which is located within the exercise files' resource folder. If I view this data using Microsoft Excel, I can see that this file has six columns of data. The first column is a timestamp formatted as year dash month dash day. The letter t hours colon minutes colon seconds, and the letter z for Zulu time. In the other columns, the pulsometer readout, red, blue, and green values are all integer numbers. And the engine efficiency is represented with decimal precision. While this displays the data nicely for me, it doesn't actually show me all the nuances I need to properly parse it. If I reopen it in Notepad++, I can see all the data is separated by commas and if I click on show all characters, I can see that a line feed or LF is used to indicate the end of a line. Now despite CSVs being a common file format, the standard…

Contents