Results 1 to 2 of 2

Thread: Replacing a line of text from a File using VBScript

  1. #1
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default Replacing a line of text from a File using VBScript

    Hi All,

    How can we replace a line (based on some condition) from a constantly changing text file. In other words a text file is being used to store some data by an application that runs all the time, I want to create another script using VBScript using I want to read the changing text file and replace some lines based on some of my conditions.

    Please share your thoughts in this issue.

    Regards

    Code Exploiter

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    You can't, because the lines won't be in the same order when they're read as when they're written back. I suggest you use some form of socket (COM or UNIX sockets).
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

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