A safer way of splitting file contents into lines.

Note that I don't use list(fp) or fp.splitlines() because
I don't want the trailing newlines in the strings.