LoadMatrixBin

Declaration: LoadMatrixBin(FName: string; var Data: TDouble2DArray; var DataID: string): integer;
The function LoadMatrixBin loads the data of an array previously stored by the function SaveMatrixBin into the array Data. The parameter FName specifies the filename of the stored array, the variable parameter DataID returns any single-line user-defined data identifier.

The function returns the following error codes:

 0 ... everything is OK
-1 ... cannot read file FName (missing or invalid format)

Hint: Please note that the functions LoadMatrixBin and SaveMatrixBin are highly optimized and should be routinely used for storing arrays. The other options for storing arrays on disk (SaveMatrixAsASC, StoreMatrix and LoadMatrix) should be used for special purposes only.