반응형
// 파일이 존재하는지 확인하기.
NSFileManager *filemgr = [NSFileManager defaultManager];
if ([filemgr fileExistsAtPath:@"fileName"] == YES)
{
NSLog(@"file exists");
}
else
{
NSLog(@"File not found");
}
반응형
'IPHONE' 카테고리의 다른 글
| 파일의 Readable/Writable/Executable/Deletable 상태 확인하기. (0) | 2014.01.07 |
|---|---|
| 두 파일의 내용 비교하기. (0) | 2014.01.07 |
| 디렉터리 내용 목록 표시하기. (0) | 2014.01.06 |
| UITableViewController에서 테이블과 상태바가 겹치지 않게 하는 코드 (0) | 2014.01.03 |
| 프로그램으로 스토리보드 Segue 호출하기 (0) | 2014.01.02 |



