+ 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.

4th Apr 2019, 4:55 PM
LimitLessSoftđŸ‘šđŸ»â€đŸ’»
LimitLessSoftđŸ‘šđŸ»â€đŸ’» - avatar
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
4th Apr 2019, 8:24 PM
sneeze
sneeze - avatar
+ 1
Thankyou!
4th Apr 2019, 10:49 PM
LimitLessSoftđŸ‘šđŸ»â€đŸ’»
LimitLessSoftđŸ‘šđŸ»â€đŸ’» - avatar