다음을 통해 공유


CFile::SeekToBegin

파일 포인터가 파일의 시작 부분으로 설정 됩니다.

void SeekToBegin( );

설명

SeekToBegin()는 Seek( 0L, CFile::begin )와 같습니다.

예제

CFile f;
f.Open(_T("Seeker_File.dat"), CFile::modeCreate |
   CFile::modeReadWrite);
f.SeekToBegin();
ULONGLONG ullEnd = f.SeekToEnd();

요구 사항

헤더: afx.h

참고 항목

참조

CFile 클래스

계층 구조 차트