IO.fileno « File Directory « Ruby





1.test what the numeric file descriptor is for your I/O stream (to_i also works).