CSV file read example in Swift 2.0

I threw together a toy application that pulled in street sweeping data from a CSV file, figured I’d share the Swift code I wrote to input CSV files:

I simplified the example a bit, but you get the idea. I really like the simplicity of flow using guard and do catch statements, it makes understanding the error handling very easy. At a glance, I know the three things that can go wrong, and where they happen, and I don’t even have to worry about NSError references!