Write Instruction

Syntax

Write #StreamNum, expr[, ...]

Group

File

Description

Write's exprs 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#.

Sandbox

Sandbox mode blocks this instruction.

Example


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

See also

Input, Line Input, Print