OleDbConnection connection = new OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Path.GetDirectoryName( fileName ) + ";Extended Properties=DBASE III" ); connection.Open( ); OleDbDataAdapter adapter = new OleDbDataAdapter( "select * from " + Path.GetFileName( fileName ), connection ); DataSet dataSet = new DataSet( ); ; adapter.Fill( dataSet ); if ( dataSet.Tables.Count > 0 ) { data = dataSet.Tables[ 0 ]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)