File is exists in ~/NewsPictures/ my code returns always false. I want to delete a file that exists in location ~/NewsPictures/1.png by name
My code:
bool t = false;
String Location = "~/NewsPictures/1.png";
if (File.Exists(Location) == true)
{
t = true;
}
What I am doing wrong.