writing to a file based on project location : <p>I'm writing a C# windows application in Visual Studio. I want to make it so my program saves a file to a folder automatically, based on the folder the program is stored in. I tried Directory.GetCurrentDirectory().ToString(); but access to that is denied to me. Any suggestions?</p>
