且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

类型或名称空间"TextFieldParser";找不到

更新时间:2023-11-17 12:35:16

在Visual Studio中,右键单击 Solution Explorer 侧面板中的 References .点击添加参考".

In Visual Studio, right click on References in the Solution Explorer side panel. Click "Add Reference".

在该列表中,请确保检查 Microsoft.VisualBasic .点击确定.

In that list be sure to check Microsoft.VisualBasic. Hit OK.

现在在名称空间中,使用Microsoft.VisualBasic.FileIO 添加.

Now in the namespace, add Using Microsoft.VisualBasic.FileIO.

这将允许您使用TextFieldParser.有关如何使用它的一个很好的简单示例,请看这里:

That will allow you to use TextFieldParser. For a good, easy example on how to use it, look here: http://geekswithblogs.net/brians/archive/2010/07/07/whats-a-nice-class-like-textfieldparser-doing-in-a-namespace.aspx