Hi,
I'm wondering how to reset a text file (ifstream infile("blah.txt")) to the beginning of the file using C++ (no C) after you've been working through it with some getline's.
From what I've read, it seems to be a bit easier to work with files in C using the FILE type and all the functions that go w/it but I really want to know how to do it in C++ with no old headers.
Thanks for your help.
Swaine777



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.
I didn't really understand this chunk of code that you used to display the contents of the map/vector:
I've tried to learn classes a number of times and I it's just not getting through my head. I need to practice working with classes, accessing member variables and member functions of classes, inheritance, polymorphism, all that stuff.