try {


           File file = new File("XXX.txt");//XXX.txt為所要輸出的文字檔名稱
           PrintWriter   out = new PrintWriter(file);
                   
           out.println("");//輸出內容為字串
           out.println();
           out.close();//使用完記得關閉串流



} catch (Exception e) {
    e.printStackTrace();
} finally {
             
}
arrow
arrow
    全站熱搜

    戮克 發表在 痞客邦 留言(0) 人氣()