Method SaveFile
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
SaveFile(string, IStringExport)
When implemented by a class, saves content to the given file with specified exporter.
bool SaveFile(string fileName, IStringExport exporter)
Parameters
fileName
stringName of file to save content.
exporter
IStringExportSpecifies exporter to save content.
Returns
- bool
True is succeed; otherwise false.
SaveFile(string, IStringExport, Encoding)
When implemented by a class, saves content to the given file with specified exported and specific encoding.
bool SaveFile(string fileName, IStringExport exporter, Encoding encoding)
Parameters
fileName
stringName of file to save content.
exporter
IStringExportSpecifies exporter to save content.
encoding
EncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.