Method LoadFile
LoadFile(string)
Loads the contents of a text file into string collection.
public virtual bool LoadFile(string fileName)
Parameters
fileNamestringRepresents name of file on disk.
Returns
- bool
True if succeed; otherwise false.
LoadFile(string, Encoding)
Loads the contents of a file into string collection.
public virtual bool LoadFile(string fileName, Encoding encoding)
Parameters
fileNamestringRepresents name of file on disk.
encodingEncodingSpecifies the character encoding to use.
Returns
- bool
True if succeed; otherwise false.
LoadFile(string, IStringImport)
Loads content from the given file with specified importer.
public virtual bool LoadFile(string fileName, IStringImport importer)
Parameters
fileNamestringName of file to load content.
importerIStringImportSpecifies importer to load content.
Returns
- bool
True is succeed; otherwise false.
LoadFile(string, IStringImport, Encoding)
Loads content from the given file with specified importer and specific encoding.
public virtual bool LoadFile(string fileName, IStringImport importer, Encoding encoding)
Parameters
fileNamestringName of file to load content.
importerIStringImportSpecifies importer to load content.
encodingEncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.