Indeed, I would prefer not to use an external library. The problem is that the CSV format allows using a coma inside quotes. It is unlikely that there will be a quoted coma in my input... but "unlikely" does not mean that there will never be such a thing.
If I split on coma and there are quoted comas, the computation could be totally messed up, but in ways that would make the mess almost unnoticeable.