method

readlines

Importance_1
readlines(*args) public

Reads ARGF's current file in its entirety, returning an Array of its lines, one line per element. Lines are assumed to be separated by sep.

lines = ARGF.readlines
lines[0]                #=> "This is line one\n"
Show source
Register or log in to add new notes.