Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the value of the file pointer to the beginning of the file.
void SeekToBegin( );
Remarks
SeekToBegin() is equivalent to Seek( 0L, CFile::begin ).
Example
CFile f;
f.Open(_T("Seeker_File.dat"), CFile::modeCreate |
CFile::modeReadWrite);
f.SeekToBegin();
ULONGLONG ullEnd = f.SeekToEnd();
Requirements
Header: afx.h