I have been trying to append strings to a local resource file but I am having trouble finding a solution. I am trying to create a log file for all the function call in my ap
This way you can do this..
+ (void)WriteLogWithString:(NSString *)log { if(log != nil){ NSString *locationFilePath = [self getLogFilePath];//access the path of file FILE *fp = fopen([locationFilePath UTF8String], "a"); fprintf(fp,"%s\n", [log UTF8String]); fclose(fp); } }