473,396 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

reading file in my site

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
Oct 17 '06 #1
2 923
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" <re*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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

Oct 17 '06 #2
thanks that's it

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OF**************@TK2MSFTNGP02.phx.gbl...
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" <re*****@hotmail.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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



Oct 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: syntax | last post by:
hi, i want to read a file using fread() in equal chunks through a for loop so that at the last call i dont get error..which way, i should read it? let me give an example, suppose i have 100...
4
by: Henk | last post by:
Hi, I am new to the c-programming language and at the moment I am struggling with the following: I want to read a file using fread() and then put it in to memory. I want to use a (singel)...
3
by: Darrel | last post by:
I've been working on a fairly simple CMS for a fairly small site. Each page is a DB query to grab the content for the page. I also have some ancillary content that isn't specifically associated...
3
by: Luqman | last post by:
How can I retrieve text from html file and write to textbox. Best Regards, Luqman
2
by: craigwhunt | last post by:
Hi all, I am deploying my ASP.NET 2.0 bits. Everything works fine in dev, but when I move it to test I get the following: CS1548: Cryptographic failure while signing assembly...
2
by: nnimod | last post by:
Hi. I'm having trouble reading some unicode files. Basically, I have to parse certain files. Some of those files are being input in Japanese, Chinese etc. The easiest way, I figured, to distinguish...
1
by: Allerdyce.John | last post by:
I need some help in reading error message: which line has problem? line 233? or line 37? Thank you. $ ./read2.py log.xml Traceback (most recent call last): File "./read2.py", line 233, in ?...
2
by: Cameron Walsh | last post by:
Hi all, I'm trying to extract the data from a bitmap or .pnm file using the following code: import Image img = Image.open("test.bmp","r") data=img.getdata() Unfortunately I get the...
1
by: Χρυσάνθη Αϊναλή | last post by:
Hi, I get an error, when I am trying to read URL. Where is the Problem? Thank u very much for all ideas!!! sincerely Chrysanthi
2
by: Derik | last post by:
I've got a XML file I read using a file_get_contents and turn into a simpleXML node every time index.php loads. I suspect this is causing a noticeable lag in my page-execution time. (Or the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.