procedure LoadFromFile(FileName: string);
Load the component from file named FileName.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | FileName | string |
Result: stored in self (calling object)
Examples
uses Math387, MtxExpr;
var a,b: Matrix;
begin
a := [[3,1],[-1,5]];
a.SaveToFile('C:\Temp\test.mtx'); // Write header and values of a
b.LoadFromFile('C:\Temp\test.mtx'); // Read header and values for b
if not a.Equal(b) then ERaise('Not equal');
end;