Function CSPFile::Write()
Description:
Writes text data from string strData to the file.
 |
Prototype:
bool Write(const CSPString& strData);
Arguments:
- const CSPString& strData [IN]
The 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 strData, except from the null terminator.
Examples:
CSPFile File; CSPString strData;
//Fill in the string strData. strData = "Some text here";
//Create the file File.Create( "MyNewFile.txt" );
//Write all the data to the file File.Write( strData );
See also:
member functions Read(), Write( CSPBuffer& ), Write( CSPWString& ), GetBytes()
|
|