How to check whether a file exists
how to check whether a file specified in the fileupload control exist or not
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
AlanRank #669 · 3.6K reputationPosted Aug 14, 2008, 3:03 AM EDT
Use the System.IO.File.Exists() method:
http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx
Mahesh ChandRank #1 · 393.3K reputationPosted Aug 14, 2008, 4:02 AM EDT
Hello Uma,
Please do not post same question multiple times.
Thank you.