c# - .Dat file to dataset -


i have .dat file need import datatable. using .net framework 4.5 , delimited ~. how import this? tried

string myselectquery = "select * " + filename; oledbconnection myconnection = new oledbconnection("provider=microsoft.jet.oledb.4.0;datasource=" + filelocation + ";extended properties=\"text;hdr=yes;fmt=delimited\""); oledbdataadapter dscmd = new oledbdataadapter(myselectquery, myconnection); //fill dataset object dscmd.fill(mydata, "packets"); 

please help


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -