for_fd

IO.for_fd(fd, mode [, opt]) â io Class Public methods Synonym for IO.new.

default_console_size

default_console_size() Class Public methods

copy_stream

IO.copy_stream(src, dst)IO.copy_stream(src, dst, copy_length)IO.copy_stream(src, dst, copy_length, src_offset) Class Public methods ::copy_stream copies src to dst. src and dst is either a filename or an IO. This method returns the number of bytes copied. If optional arguments are not given, the start position of the copy is the beginning of the filename or the current file offset of the IO. The end position of the copy is the end of file. If copy_length is given, No more than cop

console_size

console_size() Class Public methods

console

IO.console â # Class Public methods Returns an File instance opened console. You must require 'io/console' to use this method.

binwrite

IO.binwrite(name, string, [offset] ) => fixnumIO.binwrite(name, string, [offset], open_args ) => fixnum Class Public methods Same as IO.write except opening the file in binary mode and ASCII-8BIT encoding (âwb:ASCII-8BITâ).

binread

IO.binread(name, [length [, offset]] ) â string Class Public methods Opens the file, optionally seeks to the given offset, then returns length bytes (defaulting to the rest of the file). binread ensures the file is closed before returning. The open mode would be ârb:ASCII-8BITâ. IO.binread("testfile") #=> "This is line one\nThis is line two\nThis is line three\nAnd so on...\n" IO.binread("testfile", 20) #=> "This is line one\nThi" IO.binread("testfile", 20,

puts

strio.puts(obj, ...) â nil Instance Public methods See IO#puts.

printf

strio.printf(format_string [, obj, ...] ) â nil Instance Public methods See IO#printf.

print

strio.print() â nilstrio.print(obj, ...) â nil Instance Public methods See IO#print.