IO
Table of contents
IO
To make use of the IO module an import is required.
import IO;
Constants
| Constant | Description |
|---|---|
| IO.devNull | Provides access to the null device. |
IO.print(…Value) -> Nil
Prints a given list of values to stdout.
IO.print(0);
// 0
IO.println(…Value) -> Nil
Prints a given list of values to stdout with an appended newline character.
IO.println("Dictu!");
// Dictu!
IO.eprint(…Value) -> Nil
Prints a given list of values to stderr.
IO.eprint(0);
// 0
IO.eprintln(…Value) -> Nil
Prints a given list of values to stderr with an appended newline character.
IO.eprintln("Dictu!");
// Dictu!
IO.copyFile(String: src, String: dst) -> Result<Nil>
Copies the contents from the source file to the destination file.
Returns a Result type and on success will unwrap to nil.
IO.copyFile(src, dst);