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). |
|