I do not know how to use this method.
I want to get data in rtf file as NSString, but I can not.
Here is part of my code.
NSString *filePath = @"path of the file"; NSString *ImagePath = [[[NSString alloc] init] autorelease]; imagePath = [NSString stringWithContentsOfFile: filePath encoding:(NSStringEncoding)nil error:(NSError**) nil];
I cannot read the data in this .rtf file. I appreciate that everyone can help me. Thanks.
source share