I need to do the following in a .csv file using a c++ code
1. open the file
2. read the first line...extract the number part of it
3. enter the user entered data at the end of the file (append)
4. now add the extracted integer and a certain user inoutted integer and replace the number part of the first line with this new integer.
I have done the most of it...what remains is how to replace the first line?