How to ignore the first line in a csv file when you read the csv file in C# -
i how read csv file in c#. instance, file data consists of 3 columns, can make array has 3 columns , number of rows not matter since can use, instance while loop read csv file until gets null.
i want know how not read first line of csv file , read rest of it. data files such .txt, .csv contains different types of data. in csv file, might have "store catalog" in first line title , have phone number, owner name, monthly sale in each line second line.
it's going end looking like.
reader.readline(); var text = reader.readtoend();
or like:
var text = reader.readalllines(); text = text.skip(1);
this assuming you're using built-in .net readers, of course.
Comments
Post a Comment