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(…values) -> Nil
Prints a given list of values to stdout.
IO.print(0);
// 0
IO.println(…values) -> Nil
Prints a given list of values to stdout with an appended newline character.
IO.println("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);