Tag Archives: file exists

Determine whether a file or directory exists in C#

It’s usually more efficient to check whether a file or directory exists before you try to access it. For example, if you try to read a file that doesn’t exist, the system needs to create error handling objects and a … Continue reading

Posted in files | Tagged , , , , , , , | Leave a comment