NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Get Function

Reads data from an open disk file into a variable.

Get (channel, value, recordnumber) 

Arguments

channel
Required. Any valid file number.
value
Required. Valid variable name into which data is read.
recordnumber
Optional. Record number (Random mode files) or byte number (Binary mode files) at which reading begins.

Remarks

Data read with Get is usually written to a file with Put.

The first record or byte in a file is at position 1, the second record or byte is at position 2, and so on. If you omit recordnumber, the next record or byte following the last Get or Put statement (or pointed to by the last Seek function) is read.

Question: How much of the following text remains true?

You must include delimiting commas, for example:

Get #4,,FileBuffer

For files opened in Random mode, the following rules apply:

For files opened in Binary mode, all of the Random rules apply, except:

Question: How much of the text above remains true?…in case you forgot my asking this the first time…

See Also

Example

Open Statement | Put Statement | Seek Function