共用方式為


CFile::WriteHuge

voidWriteHuge(constvoid*lpBuf,DWORDdwCount**);**
throw(CFileException);

Parameters

lpBuf

A pointer to the user-supplied buffer that contains the data to be written to the file.

dwCount

The number of bytes to be transferred from the buffer. For text-mode files, carriage return–linefeed pairs are counted as single characters.

Remarks

Writes data from a buffer to the file associated with the CFile object. WriteHuge throws an exception in response to several conditions, including the disk-full condition.

This function differs from Write in that more than 64K–1 bytes of data can be written by WriteHuge. This function can be used by any object derived from CFile.

Note   WriteHuge is provided only for backward compatibility. WriteHuge and Write have the same semantics under Win32.

CFile OverviewClass MembersHierarchy Chart

See Also   CFile::Read, CFile::ReadHuge, CFile::Write, CStdioFile::WriteString