See IO.readlines. Returns all the lines from the file.
IO.readlines
638 639 640
# File 'lib/fakefs/pathname.rb', line 638 def readlines(*args) File.readlines(@path, *args) end