minicsv
minicsv copied to clipboard
can't use csv::ifstream without calling enable_trim_quote_on_str()
quote_unescape parameter is empty by default. Trying to get fields using >> operator will never return.
mini::csv::ifstream is("list.txt");
is.set_delimiter(',',"$$");
// is.enable_trim_quote_on_str(false, '~'); // (1)
if (is.is_open())
while (is.read_line())
{
int q;
is >> q; // without (1) loops infinitely
}
Same here, possible fix: add
quote_unescape = """;
to ifstream's init().