reading file in my site

  • Thread starter Thread starter perspolis
  • Start date Start date
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
 
You can always retrieve the physical path with Page.MapPath method. Is it
what you are after?
 
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

Back
Top