Hi
How do you clear a text file. I dont want to delete it, I just want it to be blank?
Printable View
Hi
How do you clear a text file. I dont want to delete it, I just want it to be blank?
.Code:Open "MyText.Txt" For Output As #1
Close #1
Very simple:
VB Code:
Private Sub Form_Load() Open "c:\test.txt" For Output As #1 'file is empty Close #1 End Sub