Table of Contents

Method LoadFile

Namespace
Alternet.Editor.TextSource
Assembly
Alternet.Editor.v9.dll

LoadFile(string)

Loads the contents of the specified file.

public virtual bool LoadFile(string fileName)

Parameters

fileName string

Name of file to load text.

Returns

bool

True is succeed; otherwise false.

LoadFile(string, IStringImport)

Loads content from the given file with specified exporter.

public bool LoadFile(string fileName, IStringImport importer)

Parameters

fileName string

Name of file to load content.

importer IStringImport

Specifies importer to load content.

Returns

bool

True is succeed; otherwise false.

LoadFile(string, Encoding)

Loads content from the given file with specific encoding.

public bool LoadFile(string fileName, Encoding encoding)

Parameters

fileName string

Name of file to load content.

encoding Encoding

Specifies the character encoding to use.

Returns

bool

True is succeed; otherwise false.

LoadFile(string, IStringImport, Encoding)

Loads content from the given file with specified importer and specific encoding.

public bool LoadFile(string fileName, IStringImport importer, Encoding encoding)

Parameters

fileName string

Name of file to load content.

importer IStringImport

Specifies importer to load content.

encoding Encoding

Specifies the character encoding to use.

Returns

bool

True is succeed; otherwise false.