Open "D:\123.txt" For Input As #1 While Not EOF(1) N = N + 1 Line Input #1, S If N = 3 Then Print S 'N=3 表示读取第3行 WendClose #1