2 ms·
please note that according to https://www.ietf.org/rfc/rfc4180.txt https://www.ietf.org/rfc/rfc4180.txt this is a valid record definition from a csv file: "b C
by terryf 11y ago
please note that according to https://www.ietf.org/rfc/rfc4180.txt https://www.ietf.org/rfc/rfc4180.txt
this is a valid record definition from a csv file:
"b CRLF
bb","ccc" CRLF
zzz,yyy,xxx
Your code will fail on this case. CSV parsing is not as simple as it sounds. Given that the format is also not well-defined, it's even worse. (is the first line a header or not for example)