Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个具有现有 dbf 表结构的 dbf 文件并向其中插入数据。我还需要为其指定名称,我通常在 excel 中通过 insert->Name 执行此操作。这是最好和最简单的方法。我已经尝试过使用 OLEDB。但我需要关于最佳选择的建议。
你有没有尝试过:
System.IO.File.Copy(sourceFileName, destFileName);
然后打开新文件并截断离开表结构的数据?