I have a simple writing app for Windows 8.1, which I'm currently expanding to include tabs. I am also adding an autosave feature to these tabs, so that when the user 'closes' the app, it writes the content of the file and the path, if its an existing file, to a txt file in the localstorage.
This works great when the files are unsaved. The user closes the app, and after reopening all his tabs are there again, with the latest changes.
The problem I have is when the file is already saved. I store the path in the txt, so I thought I'd just open the file again on opening of the app, but the problem is that I am not allowed to open just any file on the system. The user could have opened a file from his C: drive, which I cannot read (for instance as described here).
Any ideas on how I could solve this. I'm afraid that what I'm trying to do will not be possible.
If needed I could show some code about saving the autosave file, but I didn't think I could show anything relevant to the question.