TSubstringListAscii.LoadFromFile Method

Overload List

#SignatureDescription
1procedure LoadFromFile(const FileName: string); overload;Replaces the items with the lines of file FileName: LoadFromStream on the file, in the encoding its byte order mark names, else DefaultEncoding.
2procedure LoadFromFile(const FileName: string; const Encoding: TEncoding); overload;Replaces the items with the lines of file FileName in Encoding; nil reads in the encoding the byte order mark names, else DefaultEncoding.

Overload 1: procedure LoadFromFile(const FileName: string); overload;

Replaces the items with the lines of file FileName: LoadFromStream on the file, in the encoding its byte order mark names, else DefaultEncoding.

#NameDescription
1FileName

The file's name.

Result: stored in self (calling object)

Examples
var b: Matrix;
begin
    b.LoadFromFile('c:\test.Vec'); // Read header and values for b
end;

Overload 2: procedure LoadFromFile(const FileName: string; const Encoding: TEncoding); overload;

Replaces the items with the lines of file FileName in Encoding; nil reads in the encoding the byte order mark names, else DefaultEncoding.

#NameDescription
1FileName

The file's name.

2Encoding

The encoding to read the file in; nil as LoadFromFile(FileName).

Result: stored in self (calling object)