Read a file and split it by newline characters \n.