LoadFile Method
LoadFile(String)
Loads the contents of the specified file.
Declaration
public virtual bool LoadFile(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to load text. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadFile(String, Encoding)
Loads the contents of the specified file with specified encoding.
Declaration
public virtual bool LoadFile(string fileName, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to load text. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadFile(String, IStringImport)
Loads content from the given file with specified importer.
Declaration
public virtual bool LoadFile(string fileName, IStringImport importer)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to load content. |
IStringImport | importer | Specifies importer to load content. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |
LoadFile(String, IStringImport, Encoding)
Loads content from the given file with specified importer and specific encoding.
Declaration
public virtual bool LoadFile(string fileName, IStringImport importer, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | Name of file to load content. |
IStringImport | importer | Specifies importer to load content. |
Encoding | encoding | Specifies the character encoding to use. |
Returns
Type | Description |
---|---|
Boolean | True is succeed; otherwise false. |