Method LoadFile
LoadFile(string)
Loads the contents of the specified file.
public virtual bool LoadFile(string fileName)
Parameters
fileNamestringName of file to load text.
Returns
- bool
True is succeed; otherwise false.
LoadFile(string, Encoding)
Loads the contents of the specified file with specified encoding.
public virtual bool LoadFile(string fileName, Encoding encoding)
Parameters
fileNamestringName of file to load text.
encodingEncodingSpecifies the character encoding to use.
Returns
- bool
True is succeed; otherwise false.