PDA

View Full Version : Text Stream



xmrchndize
06-06-2007, 11:11 PM
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.

duncan22
06-08-2007, 03:32 PM
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!

alexjewell
06-20-2007, 01:33 AM
I'd use PHP for this.