sysread

strio.sysread(integer[, outbuf]) â string Instance Public methods Similar to read, but raises EOFError at end of string instead of returning nil, as well as IO#sysread does.

<<

strio Instance Public methods See IO#.

print

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

printf

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

puts

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

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,

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â).

console

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

console_size

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