如何用vb读取txt文件?
5.481789e-002 5.487810e-002 -5.477694e-002
5.494057e-002 5.470093e-002 -5.459942e-002
5.500817e-002 5.447027e-002 -5.436759e-002
5.502017e-002 5.418678e-002 -5.408213e-002
5.497612e-002 5.385120e-002 -5.374379e-002
5.487564e-002 5.346429e-002 -5.335335e-002
5.471842e-002 5.302685e-002 -5.291167e-002
读取这样的数据,要每秒读取一行并显示到textbox中同时要用读取到的数据绘制曲线
高手们帮帮忙
[解决办法]
Sub Timer1_Timer()
mcurrent = mcurrent + 1
if mcurrent>ubound(Lines)then mcurrent=0
Text2.Text = cstr(mcurrent)
Dim D() As String
d = Split(lines(mcurrent), " ")
Text1.Text = D(0) 'd(0),d(1),d(2) 既为每行的三个数,你自己决定怎么使用这三个数吧
End Sub