0
how to check if file exists in c# .net?

Solved 1 Answers 36 Views Programming
0 1
I am creating program in c# .net with windowsForm. Can I get a program to check if file exists? I would like to display alert if file is removed.

1 Answer

0
Best answer
0
You can use

 

System.io.File.Exists("file\\path");
answered by (151 points)
selected by

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
...