Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.csv first line skipped

Status
Not open for further replies.

bbartlin

Programmer
Jan 8, 2004
35
US
I am reading in a .csv in C#. I don't have headers, so I need to read the first line. I say HDR=NO in the connection string and it still skips the first line. Any ideas on what I'm doing wrong?

Here is my connection string...
string strConnString = "Driver={Microsoft Text Driver (*.txt; *.csv)};DBQ=" + txtPathDir.Text + "\\" + ";Extensions=asc,csv,tab,txt;HDR=NO;";
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top