Advanced Search

Results 1 to 3 of 3

Thread: Text Stream

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text Stream

    I need to display some information from a text log file. The information being called in is between a lead in and lead out in the log. Here is an example of what the log file looks like.

    <++++++++++++++++++++>
    <RECEIPT>1234

    INFO INFO INFO

    INFO INFO INFO

    1234</RECEIPT>
    <++++++++++++++++++++>
    <RECEIPT>4567

    INFO INFO INFO

    INFO INFO INFO

    4567</RECEIPT>
    <++++++++++++++++++++>

    As an example I want to display just the INFO for receipt 4567 and not the <RECEIPT> lines or the <+++++> lines.
    I have been playing with the readfile.asp page and it will read the entire file and display it now I just need to limit that to what is between the receipt lines.

    Any help will be appreciated. New to asp and web dev.

  2. #2
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i'm not sure how you would do that, but if i were you, i'd switch it over to a database so you don't have to worry about parsing out lines. text files are outdated. plus, a database will help you control the information you put out more easily, and help customize it using a repeater. a repeater will allow you to use HTML to customize the look and feel of whatever it is you're importing!

  3. #3
    Join Date
    Mar 2006
    Location
    Cleveland, Ohio
    Posts
    574
    Thanks
    6
    Thanked 5 Times in 5 Posts

    Default

    I'd use PHP for this.
    Thou com'st in such a questionable shape
    Hamlet, Act 1, Scene 4

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
  •