DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


PushFromFile

Declaration:T2DArrayStack.PushFromFile (FName: string): integer;
The method PushFromFile reads the array stored in the binary file FName and puts it on the stack.

The function returns the index of the stored array (valid range: 1..MaxSize) or a negative number if an error occurred:

>0 ... everything is OK, array file has been read and pushed on the stack
-1 ... stack overflow
-2 ... the format of the specified file is invalid

Hint 1: Please note that unnamed arrays or arrays with duplicate names cannot be searched for by name (method FindByName).

Hint 2: The format of the data file is compatible with the following functions: PopToFile, SaveMatrixBin, LoadMatrixBin, TMatrix.SaveBinary and TMatrix.LoadBinary