TITLE ^

IO - Perl 6 IO class

DESCRIPTION ^

This file implements the IO file handle class.

Methods ^

print

Writes the given list of items to the file.

say

Writes the given list of items to the file, then a newline character.

printf

Parses a format string and prints formatted output according to it.

readline

Reads a line from the file handle.

slurp

Slurp a file into a string.

eof

Tests if we have reached the end of the file.

close

Closes the file.

EXPORTED MULTI SUBS ^

prefix:=(IO $io)

Gets the iterator for the IO object.

IOIterator ^

The IOIterator class implements the I/O iterator.


parrot