Write information form a comma separated text file onto an ASP pag

R

Roundy

My task seems so simple, but I can't seem to determine how to do what I want
to do.

I have a text file that has two lines in it, the first line gives item
labels, my second line gives values for those labels. I would like to use
ASP to present this data on a web page. I also want the page to reload every
10 seconds so that any updates to the text file would be relfected on the web
page. Thanks in advance
 
T

teknohippy

which part is the issue?

As for reading the file, how far have you gotten? Opening it? Reading it
all? Reading a line?
As for refreshing, have you tried? used the meta refresh?

I got the feeling he hadn't started.
 
T

teknohippy

My task seems so simple, but I can't seem to determine how to do what I want
to do.

I have a text file that has two lines in it, the first line gives item
labels, my second line gives values for those labels. I would like to use
ASP to present this data on a web page. I also want the page to reload every
10 seconds so that any updates to the text file would be relfected on the web
page. Thanks in advance

Use the FSO(File System Object) to open the file and read it in.

Parse it in whatever way takes your fancy.

Present it to the browser.

Stick a 10 second meta refresh in the head.
 
R

Roundy

How do I write a meta refresh.

teknohippy said:
Use the FSO(File System Object) to open the file and read it in.

Parse it in whatever way takes your fancy.

Present it to the browser.

Stick a 10 second meta refresh in the head.
 
J

Jeff Cochran

My task seems so simple, but I can't seem to determine how to do what I want
to do.

I have a text file that has two lines in it, the first line gives item
labels, my second line gives values for those labels. I would like to use
ASP to present this data on a web page. I also want the page to reload every
10 seconds so that any updates to the text file would be relfected on the web
page. Thanks in advance

That's possibly not the best method, but if you're desperate:

http://www.able-consulting.com/MDAC...roviders.htm#OLEDBProviderForMicrosoftJetText

From there, treat it like a database.

Refresh:

<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="10"
</HEAD>

Jeff
 
T

teknohippy

exactly.... which is why I post the way I do sometimes :}
Make the user TRY first... that's my theory, otherwise we'd be writing it
for em, and if that's the case I want to get PAID

Sometimes I internally struggle with the decision over whether to
introduce their browser to google, or a bat to their face :)

If you know what I mean :)

<grins>

I
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top