close

The form of FileWriter class is as below:

FileWriter(String fileName, boolean append)

so , we can use 

BufferedWriter out = new BufferedWriter(new FileWriter("FileName" , true));

it means that we want to append data to the "FileName".

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JerryCheng 的頭像
    JerryCheng

    KwCheng's blog

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