Doesnt have the permision to save the file

So I have been working on a Window Application and start working on a way to save the settings in a file.
When I tried creating and saving this file by using
 doc.Save("C:\\Program Files (x86)\\Hoi4ModdingTool");

I get the error that it doesnt have the right permissions for that.
What should I do to fix that?
Was this page helpful?