Java Write类的案例
提问人:刘旭39发布时间: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();
}
}
}
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>