Objective-C-2.0程序设计-第16章-使用文件.pptVIP

  • 0
  • 0
  • 约1.72万字
  • 约 47页
  • 2019-04-17 发布于贵州
  • 举报

Objective-C-2.0程序设计-第16章-使用文件.ppt

16.2 使用路径:NSPathUtilities.h // Some basic path operations #import Foundation/NSString.h #import Foundation/NSArray.h #import Foundation/NSFileManager.h #import Foundation/NSAutoreleasePool.h #import Foundation/NSPathUtilities.h int main (int argc, char *argv[]) { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; NSString *fName = @”path.m”; NSFileManager *fm; NSString *path, *tempdir, *extension, *homedir, *fullpath; NSString *upath = @”~stevekochan/progs/../ch16/./path.m”; NSArray *components; fm = [NSFileManager defaultManager]; // Get the temporary working directory tempdir = NST

文档评论(0)

1亿VIP精品文档

相关文档