FILE *f = fopen([outputLogFile UTF8String], "a"); fprintf(f, "%s", [attributedString UTF8String]); fclose(f);