Method SaveFile
- Namespace
- Alternet.Editor.TextSource
- Assembly
- Alternet.Editor.v9.dll
SaveFile(string)
Saves text content to the specific file.
public virtual bool SaveFile(string fileName)
Parameters
fileName
stringName of file to save content.
Returns
- bool
True is succeed; otherwise false.
SaveFile(string, Encoding)
Saves text content to the specific file with specific encoding.
public virtual bool SaveFile(string fileName, Encoding encoding)
Parameters
fileName
stringName of file to save content.
encoding
EncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.
SaveFile(string, IStringExport)
Saves text content to the specific file with specified exporter.
public virtual 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)
Saves content to the given file with specified exported and specific encoding.
public virtual 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.