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
Post a Comment