java filereader filewriter怎么使用,哪个是读入,哪个是输出的内容

日期:2016-10-25 09:27:19 人气:1

java filereader filewriter怎么使用,哪个是读入,哪个是输出的内容

import java.io.*; class MyTest{ public static void main(String[] args)throws Exception{ FileReader fr=new FileReader("MyTest.java"); FileWriter fw=new FileWriter("out.txt"); int hasread=-1; char[] ch=new char[16]; try{ while((h
    A+
热门评论