I have created a window which prompts the user to enter a file name and then this file is used for further processing. To make sure that the specified file exists, I call the FileExists function.
If FileExists (sle_selFile.Text) Then MessageBox ('FileExists', 'Yes') Else MessageBox ('FileExists', 'NO') End If
Here is my problem - if the user selects a valid directory say 'C:\Windows\', FileExists returns True. FileExists behaves like DirectoryExists. Am I missing something?