Hi Charles,
thank you for your proposal.
I think it could be an interesting addition. But rather than just a
convenience function, make it behave more like its IO
conterpart: IO.read/2
Where you can pass the byte length, or :line.
Because sometimes is not about the bytes, but about the information
held in a certain number of lines in the file.
I'm thinking something like
File.read(file_path, :line, 1)
# or to read the first five lines
File.read(file_path, :line, 1..5)
I would like to know how the rest of the list feels about it.