Function CSPFile::Write()
Description:
Writes wide-character text data from string wstrData to the file.
 |
Prototype:
bool Write(const CSPWString& wstrData);
Arguments:
- const CSPWString& wstrData [IN]
The wide-character text data to write to the file.
Return value:
If successful, it returns true. Otherwise, it returns false.
Remarks:
This function copies all the data in the string wstrData, except from the null terminator.
Examples:
CSPFile File; CSPWString wstrData;
//Fill in the string wstrData. wstrData = L"Some text here";
//Create the file File.Create( "MyNewFile.txt" );
//Write all the data to the file File.Write( wstrData );
See also:
member functions Read(), Write( CSPBuffer& ), Write( CSPString& ), GetBytes()
|
|