VB6.0中如何彻底删除建立的文件
Dim A As String, B As StringPrivate Sub Command1_Click()
'打开所抽的题中的填空题
Open App.Path & "\01\填空题.txt" For Input As #1
While (Not EOF(1))
Input #1, A
B = B & A & vbCrLf
Wend
Close #2, #3
Text1.Locked = False
Text1.Text = ""
Text1.Text = B
Text1.Locked = True
End Sub
Private Sub Command2_Click()
'打开所抽的题中的改错题
Open App.Path & "\01\改错题.txt" For Input As #2
While (Not EOF(2))
Input #2, A
B = B & A & vbCrLf
Wend
Close #1, #3
Text1.Locked = False
Text1.Text = ""
Text1.Text = B
Text1.Locked = True
End Sub
Private Sub Command3_Click()
'打开所抽的题中的程序设计题
Open App.Path & "\01\编程题.txt" For Input As #3
While (Not EOF(3))
Input #3, A
B = B & A & vbCrLf
Wend
Close #1, #2
Text1.Locked = False
Text1.Text = ""
Text1.Text = B
Text1.Locked = True
End Sub
每一个按钮单击事件 下都不能彻底清除text1中的内容,就是#1,#2,#3这些建立的文件没哟彻底清除
请问大家怎么用kill进行删除
[[it] 本帖最后由 Boer 于 2008-10-14 14:36 编辑 [/it]]