Kaya 0.5.2 reference for IO::reopen

List of functions and data types in IO

File reopen(String fname, [FileMode] mode, File f)

Arguments

Usage

Re-open a file. This functions exactly like open except that rather than opening a new file, it changes an existing file handle. This is mainly useful for re-opening the standard input, output and error streams on a different file.

in = reopen("inputscript",[Read],stdin);

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya