Original post

We have a similar post on writing data to a CSV file. This post however, focuses on the simple task of taking data from a csv file and converting it into data we can work with.
The first part it to open the file, then we read it into the lines variable and finally we loop through the lines and we turn them into CsvLine objects – obviously in a real scenario we should use a more descriptive naming.