SeekToEnd
Sets the file pointer value to the end of the file. This is the same as file::Seek(0, file::end).
LONG SeekToEnd( )
The number of bytes of the whole file
EX1
void file_SeekToEnd_ex1() { file ff("C:\\float.txt", file::modeCreate | file::modeWrite); vector<float> vf(5); for ( int ii = 0; ii < vf.GetSize(); ii++ ) vf[ii] = ii*1.25; ff.WriteFloat(vf, sizeof(float), vf.GetSize()); LONG lFileSize; lFileSize = ff.SeekToEnd(); // Go to the End of the file. IFileSize = 20 ff.Close(); }
file::GetPosition, file::Seek, file::SeekToBegin
origin.h