Writing and reading from a csv file.