IO.new(fd [, mode] [, opt]) â io
Class Public methods
Returns a new IO object (a stream) for the given
integer file descriptor fd and mode string.
opt may be used to specify parts of mode in a
more readable fashion. See also ::sysopen and ::for_fd.
::new is called by various File and IO opening methods such
as ::open, Kernel#open, and File.open.
Open Mode
When mode is an integer it must be combination of the modes
defined in File::Constants
(File::RDONLY, +File::WRONLY | File: