With Cocoa, every time I try to create a file that is empty (with no characters in it) it creates a zero-kbyte file which when accessed will crash my program. I create this plain text file with the "- (BOOL)writeToFileNSString *)path atomicallyBOOL)flag" function. I call it with an empty nsstring (@"") as an argument.
Saving an empty plain text file using textedit results in a 4kbyte file. How can I make that happen using Cocoa?
Saving an empty plain text file using textedit results in a 4kbyte file. How can I make that happen using Cocoa?