80,351
社区成员
发帖
与我相关
我的任务
分享
FileOutputStream out = null;
try {
if (context != null) {
out = context.openFileOutput(fileName, Context.MODE_APPEND);
out.write(data);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
try {
if (out != null) {
out.close();
}
} catch (IOException e) {
e.printStackTrace();
}
}