Skip to content

Usage of set_file_line is not clear #137

Closed
@mgaimann

Description

@mgaimann

Use case: I need to read the same CSV file multiple times.
Problem: After I went through the CSV file the first time, I would like to go back to the beginning (line 0). When I use set_file_line(0), the internal state of LineReader (given by the variable data_begin I think) does not change. Hence, read_row() (and with that next_line()) finds the condition data_begin == data_end, meaning that a nullpointer is returned and not the correct data for the set line.
Am I using set_file_line incorrectly or is it an implementation issue? Thank you for your help :)

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