reading file in my site

P

perspolis

Hi all
I have a site and I want to to read content a file in my site.
I can't use FileStream because it use absolute path or relative path.
I know I can use HtttpFileRequest..but I want t o know
is there a better and faster way to do this??

thanks in advance
 
E

Eliyahu Goldin

You can always retrieve the physical path with Page.MapPath method. Is it
what you are after?
 
P

perspolis

thanks that's it

Eliyahu Goldin said:
You can always retrieve the physical path with Page.MapPath method. Is it
what you are after?

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]


perspolis said:
Hi all
I have a site and I want to to read content a file in my site.
I can't use FileStream because it use absolute path or relative path.
I know I can use HtttpFileRequest..but I want t o know
is there a better and faster way to do this??

thanks in advance
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top