GLBasic User Manual

Main sections

STDOUT

STDOUT text#$



STDOUT:
Writes a string to the standard output stream - this is usually the console window.

The STDOUT/STDIN/STDERR commands are really only useful for making a console program. See the menu Project/Options.

STDOUT "Name:\n"
name$ = STDIN$()

STDOUT "You are: "+name$ + "\n"

WHILE TRUE
ink$ = INKEY$()
IF LEN(ink$) THEN STDOUT "Key: "+ink$+"\n"
WEND

See also...