请问,高手请进!!!!!!!!!!!!!!!!!!!!!!
bgu 2003-01-26 05:12:20 我在写一个读文本文件的程序时,遇到这样的一个问题:
程序一段是这样的:
----------------------------------------------------------------
Private Sub Command8_Click()
Dim fso As New FileSystemObject
Dim fil As file
Dim ts As TextStream
Dim strBuffer1, strBuffer2, str As String
cd3.Filter = "Text (*.txt)|*.txt"
cd3.ShowSave
gf_strOpenFile = cd3.filename
Set ts = fso.CreateTextFile(gf_strOpenFile, True)
Do While Not EOF(FileHandle2%)
Line Input #FileHandle2%, strBuffer2
ts.Write (strBuffer2) & vbCrLf
Loop
ts.Close
Close #FileHandle2%
End Sub
--------------------------------------------------------
我想在DO while到loop写完后,(也就是:EOF(FileHandle2%)这个到了最后!)可以回去这个文件的最开头,再重新写过,但不晓的命令是什么?
请大哥们帮个忙了!·