---
title: "写文件，真机和模拟器是不一样的"
author: "简单的茶"
date: "2013-10-17T22:30:46Z"
tags: []
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2013-10-17T22:30:46Z"
id: 1960162
url: "https://lisai.iteye.com/blog/1960162"
---

在真机上，只能往  Documents 和 tmp 目录下写文件。因为文件夹Resouces是只读的，无法写入。document 和temp文件夹的东西才是可读写的。
      在模拟器上没有这个限制。
      血泪教训啊！