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.
我想知道是否有一种方法可以在不使用 VB 2010 中的 System.IO 类的情况下将文本从 .txt 文件转换为字符串。谢谢。
如果您只是在快速读取文件,请尝试:
Dim strJunk As String = My.Computer.FileSystem.ReadAllText("C:\Junk\Junk.txt")