0
我已经使用Microsoft .NET 4.0框架编写了我的整个项目。它完全完成并完美运作。现在我被告知(由于我不确定的原因),它必须使用Microsoft .NET 2.0框架。VB2013:使用.NET 2.0时从文本文件中读取
所以我已经调整好自己的项目设置是.NET 2.0,现在我得到这个错误:
'ReadLines' is not a member of 'System.IO.File'.
readlines方法被调用:
For Each LangLine1 As String In File.ReadLines(strConfigFile)
' Read line from text file and store in variable
strLanguage = LangLine1
Next
什么方法可以使用Microsoft .NET 2.0从文本文件中读取一行代替File.ReadLines?