ARGF.getc â String or nil
Instance Public methods
Reads the next character from ARGF and returns it as a
String. Returns nil at the end of the stream.
ARGF treats the files named on the command line as a single
file created by concatenating their contents. After returning the last
character of the first file, it returns the first character of the second
file, and so on.
For example:
$ echo "foo" > file
$ ruby argf.rb file
ARGF.getc #=> "f"
ARGF.getc #=> "o"
ARGF.getc