M
MBALOVER
Hi all,
I have a text file opened using the function fopen(filename,'r').
Assume that after some file reading, the file pointer is at position
X. Now I want to move it to the beginning of the file.
I see function fsee() can help to move the file pointer to a position
in the file. Unfortunately according to my book, on MS DOS, it works
only with binary files. (in UNIX it works for both binary and text
files, though).
My program is written in Windows OS so I guess this function does not
work either.
Do you know in Windows, what function I can use to move the file
pointer to a specific position in my text file?
Thanks
I have a text file opened using the function fopen(filename,'r').
Assume that after some file reading, the file pointer is at position
X. Now I want to move it to the beginning of the file.
I see function fsee() can help to move the file pointer to a position
in the file. Unfortunately according to my book, on MS DOS, it works
only with binary files. (in UNIX it works for both binary and text
files, though).
My program is written in Windows OS so I guess this function does not
work either.
Do you know in Windows, what function I can use to move the file
pointer to a specific position in my text file?
Thanks