Loading partial page from file.

I

IanO

Getting data from an database and displaying it on a web page is some
thing I have done for years. Now instead of getting data from a
database, I want to get the text of a file and display that on the web
page. The file choice is determined by a user click on a anchor link.

So far I have considered using fso to read a line at at time and doing
Response.Write for each line read.
Seems to me there should be a more elegant solution.

Should I build an array of text line while reading and do only one
response write?

Or is there another solution that I have not discovered.

Suggestions please.

Thanks,

IanO
 
B

Bob Barrows [MVP]

IanO said:
Getting data from an database and displaying it on a web page is some
thing I have done for years. Now instead of getting data from a
database, I want to get the text of a file and display that on the web
page. The file choice is determined by a user click on a anchor link.

So far I have considered using fso to read a line at at time and doing
Response.Write for each line read.
Seems to me there should be a more elegant solution.

Should I build an array of text line while reading and do only one
response write?


It depends. If it works as it is, why change it? Do you need better
performance?
 

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
474,085
Messages
2,570,597
Members
47,219
Latest member
Geraldine7

Latest Threads

Top