|
|
|
|
|
by ReleaseCandidat
805 days ago
|
|
Parse the whole file in one go. You need to track opening and closing quotes (and escaped ones) anyway, so there is no need to distinguish between commas (semicolons, tabs) and newlines. Btw. you are not handling escaped double quotes in strings at all, and if you would do that you'd also need to count the number of backspaces.
Oh, and no need to escape double quotes in single quotes ('\" could just be '"'). |
|