I'm currently writing a program and I want it to read in data from a source and if needed change some or all of it and re-write it to the same source file.
where all the variables are ints in a struct called date.
and to output I have:
Right now I read all of the data into the strut and do what ever operations I need and then read it all back. The problem is in larger text files I still need to read it all into my program, and then read it all back out. Is there a way to read in only one entry say minutes, and change it and then write it back as the new value WITHOUT having to read and write the rest of the text file entries. So I can just change the one entry?