Answer: 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