Print Instruction

Syntax
Print #StreamNum, [expr[[;|,] ...][;]]
Group
File
Description
Print the exprs to StreamNum. Use comma (,) or semi-colon (;) to separate the expressions. A num is automatically converted to a string before printing (just like Str$( )). A comma (,) inserts spaces after the printed value moving to the next tabulation column (14, 28, etc.). If the instruction does not end with a semi-colon (;) then a newline is printed at the end.
Sandbox
Sandbox mode blocks this instruction.
See Also
Input, Line Input, Write

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