title: Deploying text files in c++
body: <p>I have encountered a problem when deploying a game I made in C++. I will try and be as specific as possible.I did research this thoroughly on Google and I also asked a former programming teacher and he recommended I post to this site. I created a game in C++ and inside the source folder I had added 3 text files named: &quot;SavedGame1.txt&quot; &quot;SavedGame2.txt&quot; and &quot;SavedGame3.txt&quot;. I built a save function that when triggered, it writes the information such as player name, class, hitpoints, mana, etc to the text file so it can be read back later in my continue function. When I run it in Visual Studio (I am using Visual Studio 2010 by the way), it will write to the text file like desired and read back from the text file. After I deploy the game, it will read from the text files if they have data in them before I deploy the game, but the problem is after deployment, it will not write to the text files. This makes my save game function worthless. I found a way around this by creating a directory upon running my deployed game and then creating the save game text files in the directory, but then I face the issue of having to run the game in Admin mode or else it will not write to the text files. Can anyone tell me what I can do to get it to write to the text files so that the user does not have to be in Admin mode to use the save function.</p>