1IO.reopen(3kaya)             Kaya module reference            IO.reopen(3kaya)
2
3
4

NAME

6       IO::reopen - Re-open a file.
7

SYNOPSIS

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

ARGUMENTS

12       fname The file name
13
14       mode A list of file modes
15
16       f The existing file handle
17

DESCRIPTION

19       Re-open a file. This functions exactly like IO.open (3kaya) except that
20       rather than opening a new file, it changes  an  existing  file  handle.
21       This  is  mainly  useful  for re-opening the standard input, output and
22       error streams on a different file.
23
24
25    in = reopen("inputscript",[Read],stdin);
26

AUTHORS

28       Kaya  standard  library  by  Edwin  Brady,  Chris  Morris  and   others
29       (kaya@kayalang.org). For further information see http://kayalang.org/
30

LICENSE

32       The  Kaya  standard  library  is free software; you can redistribute it
33       and/or modify it under the terms  of  the  GNU  Lesser  General  Public
34       License  (version  2.1  or  any later version) as published by the Free
35       Software Foundation.
36
38       IO.close (3kaya)
39       IO.open (3kaya)
40       IO.stdin (3kaya)
41       IO.stdout (3kaya)
42       IO.stderr (3kaya)
43
44
45
46Kaya                             December 2010                IO.reopen(3kaya)
Impressum