Skip to content

Empty file can not be parsed #22

@wodadehencou

Description

@wodadehencou

I use csv.mmap(filename) to read csv file.

When the input file is empty (size 0), I expect a zero length output.

  if (csv.mmap(fileName)) {
    for (const auto row : csv)  // should not loop

but I get the following error

libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: Invalid argument fish: Job 1, '../bin/mp20_client.exe -in 0....' terminated by signal SIGABRT (Abort)

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