if (!System.IO.File.Exists(Server.MapPath(klasoradi + htmlname + ".html")))
{
System.IO.File.WriteAllText(Server.MapPath(klasoradi + htmlname + ".html"), htmltext);
}
I'm using this code for creating and saving my html file. But I can't overwrite the file.
Can you please help me fix this situation ?