can I use URI paths in FileInfo class?

R

RK

private const string appdir = "http://localhost/myApp";
string strPath = appdir + "/xml/test.log";
FileInfo f = new FileInfo(strPath);

the above code throwing error, like URI formats are not supported.
Can I use URI paths when using FileInfo class??
I loaded xml into XmlDocument object using URI paths but couldnt use
it in FileInfo class.

Any ideas??

thanks in advance.
--RK
 
C

Chad Z. Hower aka Kudzu

(e-mail address removed) (RK) wrote in @posting.google.com:
private const string appdir = "http://localhost/myApp";
string strPath = appdir + "/xml/test.log";
FileInfo f = new FileInfo(strPath);

the above code throwing error, like URI formats are not supported.
Can I use URI paths when using FileInfo class??

No. Only local fiels.
Any ideas??

Use HTTP.

http://www.indyproject.org/ (Free)

HTTP example code at:
http://www.atozed.com/indy


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 

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

Top