?
Solved

System.IO Reading File

Posted on 2007-10-16
2
Medium Priority
?
195 Views
Last Modified: 2010-04-15
hi ,

i'm try to read a file from HTTP location like that:

LogFileName="http://Application//files/DocSiteExport.log";
TextReader objReader=new StreamReader(LogFileName);

in the second line i got this error:
URI formats are not supported

there is not a proplem to get to this file from my computer and if i try to read a local file i success.

what can i do?

thanks


0
Comment
Question by:bwz
2 Comments
 
LVL 10

Accepted Solution

by:
answer_me earned 60 total points
ID: 20084643
0
 

Author Comment

by:bwz
ID: 20085231
thanks ! the artical was what i search for :)
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question