Print Instruction

Syntax:

Print #StreamNum, [expr[; ...][;]]

Group:

File

Description:

Prints the expr(s) to StreamNum. Use ; to separate expressions. A num is it automatically converted to a string before printing (just like Str$( )). If the instruction does not end with a ; then a newline is printed at the end.

Example:


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


See Also:

Input, Line Input, Write.