method

readlines

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: ARGF
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.