MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
void MgByteSink::ToFile ( CREFSTRING  filename)

Writes the content of the byte reader to a file. If the full contents of the reader cannot be written to the file then the file is deleted and an MgException is raised.

.NET Syntax
void ToFile(string filename);
Java Syntax
void ToFile(String filename);
PHP Syntax
void ToFile(string filename);
Parameters:
filename(String/string) Destination file name