Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    22

    Unanswered: How to delete line from a file?

    I need the code in ASP that get a file name (path)
    <%
    path="test.txt"
    %>
    search the line in the file that begin with the word "word1"
    and delete this line from the file.

    How to do it???

  2. #2
    Join Date
    Oct 2002
    Location
    Argentina
    Posts
    72

    Re: How to delete line from a file?

    You can use the object "Scripting.FileSystemObject"

    With this object you can open the file , read a line , etc



    Originally posted by liorlank
    I need the code in ASP that get a file name (path)
    <%
    path="test.txt"
    %>
    search the line in the file that begin with the word "word1"
    and delete this line from the file.

    How to do it???

Posting Permissions

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