method

getbyte

v2_1_10 - Show latest stable - Class: IO
getbyte()
public

Gets the next 8-bit byte (0..255) from ios. Returns nil if called at end of file.

f = File.new("testfile")
f.getbyte   #=> 84
f.getbyte   #=> 104