VB.NET中怎么导入TXT文本里的数据

来源:百度知道 编辑:UC知道 时间:2024/06/04 09:54:42
导入TXT文本中的数据到软件中去
例如文本中数据如下
11111 21111
22222 22222

比如说用Richtext控件
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim file As String = "f:/x.txt"
RichTextBox1.LoadFile(file)
MsgBox("ok")
End Sub