Skip to content

Error when parsing delim for a specific file open by stringstream #272 #273

@Markuu-s

Description

@Markuu-s

File:

Username;Identifier;First name;Last name
booker12;9012;Rachel;Booker
grey07;2070;Laura;Grey
johnson81;4081;Craig;Johnson
jenkins46;9346;Mary;Jenkins
smith79;5079;Jamie;Smith

Code:

std::stringstream ss(csv_data);
csv::CSVReader reader(ss);
reader.get_format().get_delim(); // delim is ','. It is wrong

But if I read from file

csv::CSVReader reader(file_path);
reader.get_format().get_delim(); // delim is ';'. It is true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions