readline

ARGF.readline(sep=$/) â string
ARGF.readline(limit) â string
ARGF.readline(sep, limit) â string
Instance Public methods

Returns the next line from the current file in ARGF.

By default lines are assumed to be separated by +$/+; to use a different character as a separator, supply it as a String for the sep argument.

The optional limit argument specifies how many characters of each line to return. By default all characters are returned.

An EOFError is raised at the end of the file.

doc_ruby_on_rails
2015-03-30 13:01:06
Comments
Leave a Comment

Please login to continue.