The SplFileObject class offers an object oriented interface for a file.
Drop newlines at the end of a line.
Read on rewind/next.
Skips empty lines in the file.
Read lines as CSV rows.