n00b question.... dat file related
I am new to the world of C and C++, now this may sound like a stupid quesiton, but this is the same way i learned visual basic, but anyways i wanna practice reading and writing to a dat file.
now right now i have a dat file called people.dat and in that dat file i have 5 names
Tom Cruise
Lindsay Lohan
Brad Pitt
Britney Spears
Jack Johnson
now i want my practice application to read the dat file and display the list as is, then i want it to display reversed
Jack Johnson
Britney Spears
Brad Pitt
Lindsay Lohan
Top Cruise
i then want to write the reversed list to another dat file called reversed.dat...
I am able to read the dat file and display in the order it is in in the dat file, but to display it in reverse and write it reversed is where i get lost.
I know this is soo simple, but i wanna learn C/C++, there are too many vb programmers
thanks guys/gals