【发布时间】:2011-04-30 21:00:37
【问题描述】:
我想在 android 项目的文本文件中写一个字符串行(使用 Eclipse)。这是我正在尝试但它不工作的代码...
String s="hello azeem\n";
try{
FileOutputStream fos = openFileOutput("C:\\eventslog.txt", Context.MODE_PRIVATE);
fos.write(s.getBytes());
fos.close();
}
catch (Exception e){
}
有什么想法吗??
【问题讨论】:
-
复制您 20 分钟前的帖子,How to write to an external text file in Android?。请不要转发;改为使用说明来编辑您的原始问题。
-
如果您有请告诉我解决方案...
标签: android