import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Testj {
public static void mian(String[]args) throws IOException{
BufferedReader bfr=new BufferedReader(new FileReader("G:\\a.java"));
BufferedWriter bwr=new BufferedWriter(new FileWriter("G:\\babab.java"));
String str=null;
while ((str=bfr.readLine())!=null){
bwr.write(str);
bwr.newLine();
bwr.flush();
}
bwr.close();
bfr.close();
}
}
|
|