Export (0) Print
Expand All

Positioning a File Pointer

When an application calls CreateFile to open a file for the first time, Windows places the file pointer at the beginning of the file. As bytes are read from or written to the file, Windows advances the file pointer the number of bytes read or written.

An application can position the file pointer to a specified offset by calling SetFilePointer.

The SetFilePointer function can also be used to query the current file pointer position by specifying a move method of FILE_CURRENT and a distance of zero.

 

 

Community Additions

ADD
Show:
© 2014 Microsoft