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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -