标签:test trace null cep put writer int output final
String filename = "F:\\test123.txt";
FileOutputStream stream = null;
OutputStreamWriter writer = null;
try {
stream = new FileOutputStream(filename, true);
writer = new OutputStreamWriter(stream);
writer.write("test");
writer.write("%!%");
writer.write("123");
writer.write("\n");
} catch (Exception e) {
e.getStackTrace();
}finally {
try {
writer.close();
stream.close();
} catch (IOException e) {
e.printStackTrace();
}
}
标签:test trace null cep put writer int output final
原文地址:https://www.cnblogs.com/fc-shi/p/10565933.html