文件上傳
FileWriter writer;try {
String path = System.getProperty("user.dir")+"/../webapps/sxzx/formfiles/"+session.get("objectID")+".txt";
writer = new FileWriter(path);
writer.write(content);
writer.flush();
writer.close();
} catch (IOException e) {
e.printStackTrace();
}
posted on 2013-08-15 11:30 半導體 閱讀(303) 評論(0) 編輯 收藏 所屬分類: JAVA語法