12
我正在寻找创建一个空文件,所以我可以打开它使用NSFileHandle编写,这是正确的方式还是我错过了一些更好的方法?创建空文件以便写入?
success = [fileManager createFileAtPath:dataFile_OUT contents:nil attributes:nil];
outFile = [NSFileHandle fileHandleForWritingAtPath:dataFile_OUT];
加里
我知道它只是简单的,但我只是想检查。 – fuzzygoat 2009-12-10 11:01:59
[看到此信息] [1] [1]:http://stackoverflow.com/questions/7011070/how-to-programmatically-create-an-empty-m4a-file-of-a -ertain-length-under-ios/10159799#10159799 – user698333 2012-04-15 05:35:50