SaveFile Method
SaveFile(String)
Saves text content to the specific file.
Declaration
public virtual bool SaveFile(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to save content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveFile(String, Encoding)
Saves text content to the specific file with specific encoding.
Declaration
public virtual bool SaveFile(string fileName, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to save content. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveFile(String, IStringExport)
Saves content to the given file in the specific format.
Declaration
public virtual bool SaveFile(string fileName, IStringExport exporter)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to save content. |
IStringExport | exporter | Specifies exporter to save content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
Implements
SaveFile(String, IStringExport, Encoding)
Saves content to the given file in the specific format with specific encoding.
Declaration
public virtual bool SaveFile(string fileName, IStringExport exporter, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to save content. |
IStringExport | exporter | Specifies exporter to save content. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |