Standard streams : IO.new « File Directory « Ruby






Standard streams


Stream description              File descriptor             Predefined Ruby variable           Ruby environment variable
Standard input stream           0                           $stdin                             STDIN
Standard output stream          1                           $stdout                            STDOUT
Standard error output stream    2                           $stderr                            STDERR

 








Related examples in the same category

1.To create a new I/O stream named ios, use the new method.
2.I/O modes