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.

Function reference

Print( str$="" )   Write a string to the standard IO stream

A 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"

Input$( prompt$=">" )   Receive a line of text from the standard IO stream

The 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

Module Information

Modulebrl.standardio
Version 1.00
Author Mark Sibly
License Blitz Shared Source Code
Copyright Blitz Research Ltd
Modserver BRL