const string filename = "Report_design.html";
string strPath = Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop);
var content = File.ReadAllText(filename);
content = content.Replace("{Model}", model);
File.WriteAllText(strPath, content);
Error pops up : System.UnauthorizedAccessException: 'Access to the path is denied' What am I trying to achieve is that I created a Report_design.html file to be save as a template and write a new Report_design.html to my desktop .Can anyone tell me how should I resolve this issues as I want to set the fix desktop where the file will be saved every time.