Search in a TEXT File

Discussion in 'ASP General' started by Prabhat, Apr 10, 2006.

  1. Prabhat

    Prabhat Guest

    Hello friends,

    I have one TEXT file that I use to log download information from website.
    The file will have unique Login ID for the downloads. When the user will
    come for next time for download the LOG entry should go under the same
    section (same ID number) so for this I need to search the text file for the
    ID and if the ID is found the program should append the NEW LOG entry to the
    end of Section. (section mark can be a line of ***** ) (mean just before the
    ***** line)

    How can I do that using ASP (vbs). Please guide me.

    Regards
    Prabhat
     
    Prabhat, Apr 10, 2006
    #1
    1. Advertising

  2. Prabhat wrote:
    > Hello friends,
    >
    > I have one TEXT file that I use to log download information from
    > website. The file will have unique Login ID for the downloads. When
    > the user will come for next time for download the LOG entry should go
    > under the same section (same ID number) so for this I need to search
    > the text file for the ID and if the ID is found the program should
    > append the NEW LOG entry to the end of Section. (section mark can be
    > a line of ***** ) (mean just before the ***** line)
    >
    > How can I do that using ASP (vbs). Please guide me.
    >


    Due to concurrency issues, I do not believe that a text file should be used
    for this purpose. Instead, use a database, even Access.
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
     
    Bob Barrows [MVP], Apr 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Samuel R. Neff
    Replies:
    2
    Views:
    609
    bradley
    Jun 10, 2005
  2. Abby Lee
    Replies:
    5
    Views:
    447
    Abby Lee
    Aug 2, 2004
  3. http://links.i6networks.com

    Database vs Text for text search

    http://links.i6networks.com, Aug 19, 2004, in forum: Perl Misc
    Replies:
    5
    Views:
    113
    Bob Walton
    Aug 21, 2004
  4. Chris Angelico
    Replies:
    9
    Views:
    242
    Andrew Cooper
    Jul 29, 2012
  5. Tim Chase
    Replies:
    10
    Views:
    394
    Robert Miles
    Aug 31, 2012
Loading...

Share This Page