File reopen(String fname, [FileMode] mode, File f)
Arguments
fname: The file namemode: A list of file modesf: The existing file handle
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);