Hi, I have a text file with some strings in it, I am able to access the text from the file by using [NSString initWithContentsOfFile] function but what I want to do next is remove the whole text from that file but leaving the text file there as my application will continue to feed strings of message into the file. I've looked through NSString, NSStream, NSScanner, NSFileManager, NSHandle but still have no idea how to do it.
I can do a remove file function but I don't really want to do it because my application would be required to loop thousand over times and I think its unwise to continously delete and create a file.
Any idea? thanks