Hi everyone, im kinda new to c++ but i know the basics as i had to take an intro course as one of my classes last term. right now im on my work term and i have been given the task to write a program that can take in an input file, a .csv file that has many thousands of rows, and apparently the device that outputs the file has incorrect timestamps for the signal output (like the time column is shifted up or down or something) and i am supposed to write a program that shifts the column back in the right place. this is my first day on the work term and im supposed to get familiar with doing stuff with those files, as in learning how to:
-Open and read the given file
-Identify the number of columns and data cells
-Manipulate data cells such as replace col 1 with col 3, add an extra column and have it display a number sequence or label etc, have a function to write a column title for the .csv file
-Write the manipulated table to a new .csv file as the program output and to make sure not to make any changes to the original data file.
stuff like that. im still not 100% sure the full extent of what i have to do, but i will update this thread when i do. i know very little about file manipulation in c++, i just know how to open and close files, check if the operation failed, and how to output text to a file, but thats basically it, so im wondering if anyone would be able to help me out with this?
thanks a bunch!! :)
p.s. here is a link to an example file so its more clear what im talking about:
https://docs.google.com/spreadsheets/d/1oBSos6khdX0W_tG7BHkkLXd6f2-9TDgMxdMP-LNAZis/edit?usp=sharing