I have a .txt
file with a small password in it. I would like to change that file's text. How can I do that? I can get the file's text using :
NSString *passWord = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"password" ofType:@"txt"] encoding:NSUTF8StringEncoding error:NULL];
But I can't seem to find a way to replace the contents of the file with a string.