Link Search Menu Expand Document

IO

Table of contents

  1. IO
    1. Constants
    2. IO.print(…values) -> Nil
    3. IO.println(…values) -> Nil
    4. IO.copyFile(String: src, String: dst) -> Result<Nil>

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);

This site uses Just The Docs, with modifications.