471,627 Members | 1,213 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

file path

How to check if a file path is correct?

Hrcko
Jan 25 '06 #1
2 1443
using System.IO;

File.Exists("FILE_PATH")

Steph.

Jan 25 '06 #2
Hello Steph.,

Not File, but just System.IO.Directory.Exists(path)

S> using System.IO;
S> File.Exists("FILE PATH")
S> Steph.
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/members/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Jan 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by leo001 | last post: by

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.