import java.io.*;public class Test3 { public static void main(String[] args) { try{ FileReader fr=new FileReader("E:/java demo/Hello1.txt"); BufferedReader br=new BufferedReader(fr); FileWriter fw=new FileWriter("E:/java demo/Hello1.txt"); BufferedWriter bw=new BufferedWriter(fw); String s; s=br.readLine(); System.out.println(s); fr.close(); br.close(); fw.close(); bw.close(); } catch(IOException ioe){System.out.println(ioe);} }}
添加回答
举报
0/150
提交
取消