The BlitzMax StandardIO module contains commands for reading and writing text to the standard IO (Input/Output) stream.
The standard IO stream is generally connected to a 'console', allowing you to interact with an application in a very simple way.
Function Print( str$="" )
Write a string to the standard IO stream
A newline character is also written after str.
Rem Use the Print command to output BlitzMax strings to the Console window. End Rem SuperStrict Print "Hello World"
Function Input$( prompt$=">" )
Receive a line of text from the standard IO stream
The optional prompt is displayed before input is returned.
Rem Use the Input command to read user input from the console to a BlitzMax String. End Rem SuperStrict Local name:String = Input("What is your name") Print "Hello "+name
Global StandardIOStream:TStream=TTextStream.Create( New TCStandardIO,ETextStreamFormat.UTF8 )
BlitzMax Stream object used for Print and Input