java例程练习(字符流)
摘要:
import java.io.*;public class TestFileReader { public static void main(String[] args) { FileReader fr = null; int c = 0; try { fr = new FileReader("C:/java/Test.java"); while((c = fr.read()) != -1) { System.out.print((char)c); } fr.close(); } catch (FileNotFoundException e) { Sys... 阅读全文
posted @ 2012-05-01 22:18
Yours风之恋
阅读(139)
评论(0)
推荐(0)
浙公网安备 33010602011771号