Function CSPFile::Write()

Description:
Writes data from buffer Data to the file.

Prototype:
bool Write(const CSPBuffer& Data);

Arguments:
  • const CSPBuffer& Data [IN]
    The data to write to the file.



Return value:
If successful, it returns true. Otherwise, it returns false.

Examples:
CSPFile File;
CSPBuffer Data;

//Fill in the Data buffer.
...
...
//Create the file
File.Create( "MyNewFile.abc" );

//Write all the data to the file
File.Write( Data );

See also:
member functions Read(), Write( CSPString& ), Write( CSPWString& ), GetBytes()
CSPFile | Basic classes | Class Categories | Online help home | Back

www.micronovae.com

Copyright © 2002 - 2005 Micronovae Ltd