CFile::SeekToEnd
Sets the value of the file pointer to the logical end of the file.
ULONGLONG SeekToEnd( );
Return Value
The length of the file in bytes.
Remarks
SeekToEnd() is equivalent to CFile::Seek( 0L, CFile::end ).
Example
CFile f;
f.Open(_T("Seeker_File.dat"), CFile::modeCreate |
CFile::modeReadWrite);
f.SeekToBegin();
ULONGLONG ullEnd = f.SeekToEnd();
Requirements
Header: afx.h