timmay3141
Programmer
I haven't used the fstream class for file input/output for a while, and I was wondering how you go to a certain line in the file. I'm going to have some data in a file in this format: int double string. The file could look like this:
1 2.05 Hello
8 4.5 Bye
6 2.1323 asdf
etc
I thought there was a function to go to a specific line, but I don't remember. Anyone know this function, or does it not exist? I'm using this in a win32 app, so if there is a more "Windows" way of handling file input/output that can do the same stuff, could you point me in the right direction?
1 2.05 Hello
8 4.5 Bye
6 2.1323 asdf
etc
I thought there was a function to go to a specific line, but I don't remember. Anyone know this function, or does it not exist? I'm using this in a win32 app, so if there is a more "Windows" way of handling file input/output that can do the same stuff, could you point me in the right direction?