Flowdock
chars() public

Returns an enumerator that gives each character in ios. The stream must be opened for reading or an IOError will be raised.

f = File.new("testfile")
f.chars.to_a  #=> ["h", "e", "l", "l", "o"]
f.rewind
f.chars.sort  #=> ["e", "h", "l", "l", "o"]
Show source
Register or log in to add new notes.