【发布时间】:2010-10-02 10:10:19
【问题描述】:
我在 Android 的 assets 文件夹中使用了一个文本文件。我想动态更改该文本文件中的数据。我正在尝试按如下方式打开文件:
FileOutputStream fos=this.getAssets().openNonAssetFd("data.txt").createOutputStream();
但它正在生成错误:java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed。请帮我编辑这个文件。非常感谢。
【问题讨论】: