Hello guys.
I bought a logbook today for my car, and I wondered why the hell not just create a software app for it? :P
I want to store the information and I am obviously going to use fstream.h to handle this I/O, but I am just wondering:
I want the program to be able to update itself on startup with previously entered information (Kinda like a logbook, RIGHT? :P ) and I am not very experienced with the file I/O use.
How would I extract certain lines of information from the text file, and assign it to a variable?
Even just an example to extract and display the starting odometer reading would be appriciated.. I mean, there's no point to this if I have to type in every single thing, especially when certain values will remain the same..
Thanks in advance!