所以我的程序需要一行一行地通过纯文本文件:
Read line 1:
Do commands
loop
Read line2:
Do Commands
loop
Run Code Online (Sandbox Code Playgroud)
等等,直到完成整个文件,任何人都知道任何好的编码示例,所有的教程似乎显示打开和写/读文本文件,但没有关于如何逐行进行.
For Each line As String In System.IO.File.ReadAllLines("file.txt")
' Do Something'
Next
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5911 次 |
| 最近记录: |