How can we check files exists in a physical directory ?

 Posted by Chvrsri on 2/24/2012 | Category: C# Interview questions | Views: 3798 | Points: 40

We can check whether a particular file is existing in a physical directory or not by using this code

System.IO.File.Exists("path")". path

This is the physical file path and it will return you a Boolean value so that we can check whether a file is existing or not

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response