Java Write類的案例
提問人:劉旭39發(fā)布時(shí)間:2020-11-28
//Write類
public class Write {
public static void main(String[] args) {
try {
Reader reader = new FileReader("Date.json");
FileWriter write = new FileWriter("output.json");
int i = 0;
while(i != -1) {
i =reader.read();
write.write(i);
}
reader.close();
write.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>