2 out of 2 rated this helpful - Rate this topic

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 ).

//example for CFile::SeekToEnd
extern CFile cfile;
ULONGLONG dwActual = cfile.SeekToEnd();
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ