Objecive-Cでファイルに書き込み
ファイルに”朝比奈”と書き込むだけのObjective-C
朝比奈キョータロー
#include
int main(void){
CREATE_AUTORELEASE_POOL(pool);
NSString* name = @"朝比奈";
if([name writeToFile:@"C:/work/RANUN.txt" atomically:YES]){
NSLog(@"Success");
}else{
NSLog(@"FAILUE");
}
return 0;
}