
July 13th, 2003, 09:12 PM
|
|
Junior Member
|
|
Join Date: Jul 2003
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Setting file pointer position in C++
When you pull a character from a file, the pointer that tells which character in the file you are currently at increments forward one until you hit the EOF character...
Im programming something that will have to use the same data in the file repeatedly, but I dont remember the command to just move the pointer elsewhere...the only way I remember to set it back to the beginning is to just close the file and reopen it...but that is way too sloppy, I think...
I remember the command being something like SetPos() in C, but I was never taught the corresponding C++ function, so any help would really be appreciated...
|