2013年12月23日 星期一

取得檔案的二種方法nsbundle & nsfilehandle

NSString *newPath=[[NSBundle mainBundle] pathForResource:@"test" ofType:@"txt"];

NSFileHandle *fileHandle=[NSFileHandle fileHandleForReadingAtPath:newPath];

[[NSBundle mainBundle] pathForResource:@"test" ofType:@"jat"];

沒有留言:

張貼留言