Class Console

Introduction

This class wraps standard I/O.

Contents

  1. Introduction
  2. Contents
  3. Explanation of symbols used
  4. Member reference
    1. Display - display text to STDOUT
    2. ReadLine - read a line from STDIN
    3. WriteLine - write a line to STDOUT

Explanation of symbols used

Words in italics indicate an instance of a class. The word corresponds to the class name, except where more than one instance is represented in the same statement. In that case a number (2, 3, etc.) is appended to the class name.

Words in normal typeface are to be taken literally (required punctuation, class name in a static reference, method name, etc.)

The symbol => is used to separate an expression (on the left) from its return value (on the right).

An ellipsis (...) indicates that the previous argument may be repeated any number of times. The description will indicate whether one instance is required.

Member reference

static method Display

Console.Display(a)

This method writes raw text to STDOUT. Unlike WriteLine, the text is not terminated by a CRLF pair.

static method ReadLine

Console.ReadLine() => string
This method obtains a line of input from STDIN. If EOF is encountered, string is returned ^null.

static method WriteLine

Console.WriteLine(object)

This method writes sequentially to STDOUT. If object is an ArrayList (or derived from ArrayList -- e.g., ls), then each member's string representation (obtained by calling its ToString() method) is output as a separate line. For any other type of object or primitive (a, int, decimal), the string representation of that argument is output as a separate line.