I have a NSString *csvData which contains the csv data and the format is correct.
In my program (the iPhone), there is a button. When the user click the button, the string will convent to the .csv file. However, I don’t know how to convent the NSString to a CSV file. Does the objective C provides any build-in function or class can help me to do?
See the
NSFileManagerclass reference and especially the- (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)contents attributes:(NSDictionary *)attributes.Best
–f