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!

HxLink DID NOT INITIALIZE

Put Statement

Writes data from a variable to a disk file.

Put (channel, value, recordnumber)

Arguments

channel
Required. Any valid file number.
value
Required. Valid variable name containing data written to disk.
recordnumber
Optional. Record number (Random mode files) or byte number (Binary mode files) at which writing begins.

Remarks

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

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 after the last Get or Put statement or pointed to by the last Seek function is written.

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

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

See Also

Example

Get Function | Open Statement | Seek Function | Writing Data to Files