BRL.StandardIO: Globals Functions Modinfo Source  

StandardIO

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.

Globals

Global StandardIOStream:TStream
DescriptionBlitzMax Stream object used for Print and Input.
InformationThe Print and Input commands can be redirected by setting the StandardIOStream Global to an alternative Stream Object.

Functions

Function Input$( prompt$=">" )
DescriptionReceive a line of text from the standard IO stream.
InformationThe optional prompt is displayed before input is returned.
Example
Rem
Use the Input command to read user input from the console to a BlitzMax String.
End Rem

name$=Input("What is your name")
print "Hello "+name

Function Print( str$="" )
DescriptionWrite a string to the standard IO stream.
InformationA newline character is also written after str.
Example
Rem
Use the Print command to output BlitzMax strings to the Console window.
End Rem

Print "Hello World"

Module Information

Version1.05
AuthorMark Sibly
LicenseBlitz Shared Source Code
CopyrightBlitz Research Ltd
ModserverBRL
History1.05 Release
History1.04 Release
HistoryCStandardIO now goes through a UTF8 textstream