CArchive::Flush

남은 보관 버퍼를 파일에 쓸 데이터가 강제로.

void Flush( );

설명

멤버 함수 Flush 모든 데이터가 전송 되는 보관 파일에서 파일을 확인 합니다.호출 해야 CFile::Close 저장 미디어에서 파일 전송을 완료 합니다.

예제

CFile myFile(_T("CArchive__test__file.txt"), 
   CFile::modeCreate | CFile::modeWrite);
CArchive ar(&myFile, CArchive::store);

// Write a string to the archive.
ar.WriteString(_T("My string."));

// Flush all of the data to the file.
ar.Flush();     

요구 사항

헤더: afx.h

참고 항목

참조

CArchive 클래스

계층 구조 차트

CArchive::Close

CFile::Flush

CFile::Close