Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

MgByteSink
ToFile
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

Comments or suggestions? Send us feedback.