Reader讀取文件


        Reader in = new InputStreamReader(new BufferedInputStream(new FileInputStream("d.dat")),"UTF-8");
        int c = in.read();
        System.out.println((char)c);
        int a = in.read();
        System.out.println((char)a);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章