VB 读取指定记事本文件第二行数据保存到另外一个记事本

VB 读取指定记事本文件第二行数据保存到另外一个记事本
2025-03-21 00:55:55
推荐回答(1个)
回答1:

Private Sub Command1_Click()
Open App.Path + "\time.ini" For Input As #1
Do While Not EOF(1)
Line Input #1, temp
text1(i) = temp
i = i + 1
Loop
Close #1
bb = text1(1)
Open App.Path + "\1.txt" For Output As #1 '湖羲恅璃
Print #1, bb
Close #1
End Sub