CFile::SeekToEnd
Sets the value of the file pointer to the logical end of the file.
ULONGLONG SeekToEnd( );
Возвращаемое значение
The length of the file in bytes.
Заметки
SeekToEnd() is equivalent to CFile::Seek( 0L, CFile::end ).
Пример
CFile f;
f.Open(_T("Seeker_File.dat"), CFile::modeCreate |
CFile::modeReadWrite);
f.SeekToBegin();
ULONGLONG ullEnd = f.SeekToEnd();
Требования
Header: afx.h