P
Poppy
I use the following code to append a line of text to a text file :
Dim myFILENAME As String = Server.MapPath("/ABACUS/cvdocs/" & fileName)
Dim objStreamWriter As StreamWriter
objStreamWriter = File.AppendText(myFILENAME)
objStreamWriter.WriteLine(csvline)
objStreamWriter.Close()
The code works fine but I need to be a ble to delete the entire contents of
the file as well and I cant figure it out.
How can I open a text file and clean it out ?
Thanks in Advance
Dim myFILENAME As String = Server.MapPath("/ABACUS/cvdocs/" & fileName)
Dim objStreamWriter As StreamWriter
objStreamWriter = File.AppendText(myFILENAME)
objStreamWriter.WriteLine(csvline)
objStreamWriter.Close()
The code works fine but I need to be a ble to delete the entire contents of
the file as well and I cant figure it out.
How can I open a text file and clean it out ?
Thanks in Advance