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

Write # Statement

Writes data to a sequential file. Data written with Write # is usually read from a file with Input #.

Write (channel, output)

Arguments

channel
Required. Any valid file number.
output
Optional. One or more comma-delimited expressionsto write to a file.

Remarks

If you omit the output, a blank line is printed to the file. Multiple expressions can be separated with a comma.

Unlike the Print # statement, the Write # statement inserts commas between items and quotation marks around strings as they are written to the file. You don't have to put explicit delimiters in the list. When Write # is used to write data to a file, only the following data formats are supported and several universal assumptions are followed so the data can always be read and correctly interpreted using Input #, regardless of locale:

Write # inserts a newline character, that is, a carriage return–linefeed (Chr(13) + Chr(10)), after it has written the final character in output to the file.

Note   You should not write strings that contain embedded quotation marks, for example, "1,2""X" for use with the Input # statement: Input # parses this string as two complete and separate strings.

See Also

Example

Input # Function | Open Statement | Print # Statement | Writing Data to Files