Skip to content

How do I read row 0 when there are no headers? #48

@CVertex

Description

@CVertex

I've got a bunch of CSVs with no header rows.

When I do

var dt = DataTable.New.ReadCsv("source-file.csv");
foreach (var row in dt.Rows)
{
    var idAsString = row.Values[0];

}

the first row is skipped. What's the best way to avoid skipping the first row if I know the CSV has no headers?

Thanks

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