CArchive::WriteString

void WriteString( LPCTSTR lpsz );
throw( CFileException );

Parameters

lpsz

Specifies a pointer to a buffer containing a null-terminated text string.

Remarks

Use this member function to write data from a buffer to the file associated with the CArchive object. The terminating null character ('\0') is not written to the file; nor is a newline automatically written.

WriteString throws an exception in response to several conditions, including the disk-full condition.

Write is also available, but rather than terminating on a null character, it writes the requested number of bytes to the file.

CArchive OverviewClass MembersHierarchy Chart

See Also   CArchive::Write, CArchive::Read, CArchive::ReadString, CFileException