CFile file("example.txt", CFile::modeRead); file.Seek(0, CFile::begin);
CFile file("example.txt", CFile::modeRead); file.Seek(10, CFile::current);In this example, the file pointer is advanced 10 bytes from the current position using the CFile::current argument. The package library for CFile::Seek is MFC (Microsoft Foundation Classes).