0
失去現有的數據我用如何添加到文件數據?沒有文件
try {
DataOutputStream out = c.openDataOutputStream();
String text = file + " | " + tag + " | " + report + " \n ";
out.write(text.getBytes());
out.close();
} catch (Exception e) {
System.out.println("IOException OutputStream: "+e.getMessage());
}`
,但它消除了文件中的所有現有數據。