Write Instruction

Syntax

Write #StreamNum, expr[, ...]

Group

File

Description

Write's expr(s) to StreamNum. String values are quoted. Null values are written as #NULL#. Boolean values are written as #FALSE# or #TRUE#. Date values are written as #date#. Error codes are written as #ERROR number#.

See Also: Input, Line Input, Print.

Example

Sub Main
A = 1
B = 2
C$ = "Hello"
Open
"XXX" For Output As #1
Write #1,A,B,C$
Close
#1
End
Sub