Next: 2.5 Interpreter recursion Up: 2. Onyx Language Reference Previous: 2.3 Stacks Contents Index

#
2.4 Standard I/O

Onyx provides operators to access the standard I/O file objects: stdin , stdout , and stderr . Under normal circumstances, these operators are adequate for all standard I/O operations. However, it may be desirable to replace these files on a per-thread basis. This can be accomplished using setstdin , setstdout , and setstderr . Furthermore, the file objects that are inherited by new threads can be accessed and modified via gstdin , gstdout , gstderr , setgstdin , setgstdout , and setgstderr .