C# Read from .DBF files into a datatable
I need to connect to a .dbf file in visual Studio using C# and populate a data table. Any ideas? I can currently view the tables in Visual Fox Pro 9.0 Code I have tried and failed, keep getting External table is not in the expected format. private OleDbConnection conn; private OleDbCommand cmd; private OleDbDataReader dr; private string sqlStr = ""; private DataSet myDataSet; private OleDbDataAdapter myAdapter; void test2() { conn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Users\\PC1\Documents\\Visual FoxPro Projects\\;Extended Properties=DBASE IV;"); conn.Open();