Du använder dig av oledb-providern. Detta exempel kanske fungerar...Sv: DBASE IV filer
<code>
String ConnectionString;
ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=e:\\My Documents\\dBase;Extended Properties=dBase IV";
System.Data.OleDb.OleDbConnection dBaseConnection = new System.Data.OleDb.OleDbConnection();
dBaseConnection.ConnectionString = ConnectionString;
dBaseConnection.Open();
System.Data.OleDb.OleDbCommand dBaseCommand = new OleDbCommand();
dBaseCommand.CommandText = "SELECT * FROM MyDBase";
dBaseCommand.Connection = dBaseConnection;
System.Data.OleDb.OleDbDataReader dBaseDataReader =
dBaseCommand.ExecuteReader(CommandBehavior.SequentialAccess);
while (dBaseDataReader.Read())
{
Console.WriteLine(dBaseDataReader["Column1"]);
Console.WriteLine(dBaseDataReader["Column2"]);
Console.WriteLine(dBaseDataReader["Column3"]);
}
dBaseConnection.Close();
</code>