📜  vb streamreader - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:53.098000             🧑  作者: Mango

代码示例1
Dim fileReader As System.IO.StreamReader
fileReader =
My.Computer.FileSystem.OpenTextFileReader("C:\\testfile.txt")
Dim stringReader As String
stringReader = fileReader.ReadLine()
MsgBox("The first line of the file is " & stringReader)