-
File I/O
I was thinking and I wondered if it was possible to read in an entire line from a file without taking it from a file. I know you can use peek and seekg to read in a character and move the location of where to take in from. However, peek only takes in one char and I was wondering if it was possible to take in the entire line.
-
reading from a file doesn't remove data from the file as such, although writing to a file can, but doesn't necessarily have to, overwrite data in file. If all you do is read from the file, then data will remain constant in file. You can make files read only if you wish.