KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My application traverses a directory tree and in each directory it tries to open a file with a particular name (using File.OpenRead() ). If this call throws FileNotFoundException then it knows that the file does not exist. Would I rather have a File.Exists() call before that to check if file exists? Would this be more efficient?
Tags (comma-separated)
Save Edits
Cancel