How to properly read columns from text file
问题 Im trying to read data from a text file and loading it into a dataset but the different columns as in the image below are coming as just one long column. I want to return the data as 7 columns (in the same way as its appearing in the image below). This is the code am using, public DataSet LoadTxtFile(int numberOfRows) { DataSet ds = new DataSet(); //try //{ // Creates and opens an ODBC connection string strConnString = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + this.dirCSV.Trim()