Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C#, method to see if a file exists

Status
Not open for further replies.

scotitpulsa

IS-IT--Management
Oct 1, 2003
61
0
0
US
I am wondering if anyone has a method off the top of their head that checks first checks to see if a file exists (in a location entered by a user).
 
Code:
My.Computer.FileSystem.FileExists()


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Aren't they both the ".NET way" (apart from the My class wasn't available until version 2.0 of the framework)?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Oh, sorry I see what you are getting at (the poster asked for C# and My is just a shoprtcut for VB.NET developers). Please ignore my comment...


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top