User Tools

Site Tools


en:code:core:stdio

This is an old revision of the document!


Stdio

Functions

print

Writes a line to the standard output.

Syntax

Stdio.print(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.print("Hello World!");

println

Writes a line to the standard output. A new line character is automatically added.

Syntax

Stdio.println(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.println("Hello World!");

printWarning

Writes a line in the standard output using a warning prefix.

Syntax

Stdio.printWarning(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.printWarning("This is important!");

printlnWarning

Writes a line in the standard output using a warning prefix. A new line character is automatically added.

Syntax

Stdio.printlnWarning(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.printlnWarning("This is important!");

printError

Writes a line in the standard output using an error prefix.

Syntax

Stdio.printError(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.printError("This is critical!");

printlnError

Writes a line in the standard output using an error prefix. A new line character is automatically added.

Syntax

Stdio.printlnError(text);

Arguments

  1. text - (string) the text to write

Returns

  • (Stdio) this Stdio

Example

Stdio.printlnError("This is critical!");
en/code/core/stdio.1323612313.txt.gz · Last modified: 2021/02/13 11:23 (external edit)