How can I restore a file with certain data. If a user enters a file in which he wants the data to be restored with, and that file is not there, it should be created with that data. This is all part of an encryption tool. So say I, the user, selects a file, and encrypts it. So I have my encrypted data. But now I need to move this encrypted data to a file, so that the user can take the file that contains the encrypted data, to decrypt, so that he gets his original file provided he entered the correct key.
Hopefully that was clear enough. All help is greatly appreciated.
I fixed my problem by using NSHomeDirectory instead of hardcoding the path. Thanks though for the help.