namespace Console

Provides a simple interface to the stdin, stdout, and stderr streams

namespace contents
Functions
function print(void) - Prints a string to stdout
function printErr(void) - Prints a string to stderr
function println(string) - Prints a string to stdout followed by a newline
function printlnErr(void) - Print a string to stderr followed by a newline
function readln() - Reads a line from stdin
Variables
variable stderr - Sys.StdioStream object which is connected to stderr
variable stdin - An Sys.StdioStream object which is connected to stdin
variable stdout - A Sys.StdioStream object which is connected to stdout

Functions

function print Click to go up to the list
Prints a string to stdout
Declaration:
    function print( void s )
Description:
You need to make sure to send a \n to the output at somepoint, otherwise buffering is likely to stop anything being displayed. This function can take any type of variable and will automagically convert it into a string.
Parameters:
    Parameter #1: void s - The information to print out.
Example:

Console.print( "Hi!" )


function printErr Click to go up to the list
Prints a string to stderr
Declaration:
    function printErr( void s )
Description:
This is equivalent to Console.print, but instead of sending output to standard out, it will be sent to standard error.
Parameters:
    Parameter #1: void s - The information to output

function println Click to go up to the list
Prints a string to stdout followed by a newline
Declaration:
    function println( string s )
Description:
Unlike, print, you don't need to send a \n. This function can take any type of variable and will automagically convert it into a string.
Parameters:
    Parameter #1: string s - The string
Example:

Console.println( "Hi!" )


function printlnErr Click to go up to the list
Print a string to stderr followed by a newline
Declaration:
    function printlnErr( void s )
Description:
This is equivalent to Console.println, but instead of sending output to standard out, it will be sent to standard error.
Parameters:
    Parameter #1: void s - The information to output

function readln Click to go up to the list
Reads a line from stdin
Declaration:
    function readln()
Returns:
    The line read from stdin as a string, including the newline
Example:

string s = Console.readln();


Variables

object stderr Click to go up to the list
Sys.StdioStream object which is connected to stderr

object stdin Click to go up to the list
An Sys.StdioStream object which is connected to stdin

object stdout Click to go up to the list
A Sys.StdioStream object which is connected to stdout

Automatically generated at 12:07PM, Wednesday 25 May 2005 by feritedoc.