VB.NET急救 TXT文本文件读取问题

2025-01-05 07:14:26
推荐回答(1个)
回答1:

Dim str As IO.StreamReader = New IO.StreamReader("F:\1.txt", System.Text.Encoding.Default)
do until str.endofstrem
listbox1.items.add(str.ReadLine())
loop
str.Close()