Reads data from a binary file or a random file into a variable.
Syntax
Get #fileNumber , [ recordNumber ] , variableName
Elements
fileNumber
The number assigned to the file when it was opened with the Open statement. Note that the pound sign (#), fileNumber, and variableName are all required.
recordNumber
Optional. The file position (the byte position in a binary file, or the record number in a random file) where data retrieval begins. If you omit recordNumber, LotusScript retrieves data beginning from the current file position.
variableName
The variable to be used for storing the retrieved data. variableName cannot be an array. However, a fixed-length array defined within a data type is allowed (this array could also contain other arrays as elements).
Usage
The first byte or record in a file is always file position 1. After each read operation, the file position is advanced:
For a binary file, by the size of the variable
For a random file, by the size of a record
The Get statement reads data into variableName depending on the variable's data type. The following table shows how the Get statement behaves for different data types.