3 ms·
Validating CSV syntax is kind of hard - in the worst case you would have to read the entire CSV file.
by zabzonk 5y ago
Validating CSV syntax is kind of hard - in the worst case you would have to read the entire CSV file.
- hermitcrab 5y agoEven then it seems that there aren't that many checks you can do, other than: -warning if different rows have different numbers of columns -warning if the file ends without closing escaping Without meta data you can't check data types. A missing escape character might result in a valid CSV (just not the one intended).