title: c# datatable Cannot update. Database or object is read-only
body: <pre><code>private void Form1_Load(object sender, EventArgs e)
          {
              GetDataTable(@"C:\Documents and Settings\agordon\Desktop\ACTIVITYEX.log");
          }
          public System.Data.DataTable GetDataTable(string strFileName)
          {
              System.Data.OleDb.OleDbConnection conn = 
                  new System.Data.OleDb.OleDbConnection
                      ("Provider=Microsoft.Jet.OleDb.4.0; Data Source = " 
                      + System.IO.Path.GetDirectoryName(strFileName) 
                      + ";Extended Properties = \"Text;HDR=YES;FMT=TabDelimited\"");
              conn.Open();
              string strQuery = "SELECT * FROM [" + System.IO.Path.GetFileName(strFileName) + "]";
              System.Data.OleDb.OleDbDataAdapter adapter = new System.Data.OleDb.OleDbDataAdapter(strQuery, conn);
              System.Data.DataTable ds = new System.Data.DataTable("CSV File");
              adapter.Fill(ds);
              return ds;
          }
  </code></pre>
  
  <p>when THE SAME file is named <code>.csv</code> it does not give me an error; however when i rename it to <code>.log</code> it says <code>Cannot update.  Database or object is read-only.</code> on <code>adapter.Fill</code> </p>
  
  <p>is this a compiler error?</p>