首页 > 移动平台 > 详细

iOS持续写文件到本地

时间:2016-09-22 13:03:50      阅读:202      评论:0      收藏:0      [点我收藏+]

 

        NSString *tempSavePath = [NSString stringWithFormat:@"%@/Documents",kDocumentPath];

        NSFileHandle *fileHandle = [NSFileHandle fileHandleForUpdatingAtPath:tempSavePath];

    

//     持续写文件到本地

            [fileHandle seekToEndOfFile];  //将节点跳到文件的末尾

            [fileHandle writeData:data]; //追加写入数据

    

            [fileHandle closeFile];

iOS持续写文件到本地

原文:http://www.cnblogs.com/cjt5132/p/5895784.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!