+ 1
Problem with file.Exist
Im new, and I try to put If (File.Exist (url) ) { Messagebox.show(âmensajeâ) } and it (File.Exist) doesnât appear.
3 Answers
+ 1
File.Exists cannot be use for url only of file-paths on computers.
You can't use File.Exists on the playground, it does not allow file-access.
To check for a URL you need a WebRequest.Method
https://social.msdn.microsoft.com/Forums/vstudio/en-US/4b4f5afc-6f7e-447a-9dc5-b0ae776d28d7/fileexists-url?forum=csharpgeneral
+ 1
Thankyou!