Private Sub Command1_Click()Open "C:\123.txt" For Input As #1n = 0Do While Not EOF(1)Line Input #1, an = n + 1If n = 3 ThenText1.Text = aExit DoEnd IfLoopClose #1End Sub这样就可以了。用n来控制行数。当到达了第三行,就输出到文本框,然后退出循环。