Use StreamReader to read the information from a standard text file.

xiaoxiao2021-03-06  58

'Use StreamReader to read line information from a standard text file.

Dim Srreadline As New System.io.StreamReader ("D: /1.txt", System.Text.Encoding.Getencoding ("GB2312"))

Srreadline.basestream.seek (0, System.io.seekorigin.begin)

While Srreadline.peek ()> -1

TextBox1.text = srreadline.readline () & vbrlf

End while

srreadline.close ()

转载请注明原文地址:https://www.9cbs.com/read-112100.html

New Post(0)