Text file deletion/emptying ?

Results 1 to 2 of 2

Thread: Text file deletion/emptying ?

  1. #1
    Join Date
    Dec 1969

    Default Text file deletion/emptying ?

    Hi all<BR><BR>if I have an existing text file that holds HTML content and I want to empty the contents of this online file before writing new content to it how would I go about doing this ?<BR><BR>...<BR>...<BR>Set objFSO = Server.CreateObject("Scripting.FileSystemObject")S et objFile = objFSO.OpenTextFile(strFile, 8, True)<BR>...<BR>...<BR><BR>TIA<BR>Beginner

  2. #2
    Join Date
    Dec 1969

    Default RE: Text file deletion/emptying ?

    What I do is, create a text file right over the top of the old one. <BR><BR>I usually pass it to a page that does this before i use it again.<BR><BR>Set f = FS.CreateTextFile("C:logfile.txt", true) <BR><BR>have a goodin&#039

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts