首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

读取资料小记

2012-10-09 
读取文件小记File file new File(src/com/test4/util/StringUtil.java)FileInputStream in new Fil

读取文件小记

            File file = new File("src/com/test4/util/StringUtil.java");            FileInputStream in = new FileInputStream(file);            InputStreamReader reader = new InputStreamReader(in);            BufferedReader bf = new BufferedReader(reader);            int i = 0 ;            while(i!=-1){                String line = bf.readLine();                  i=bf.read();            }
?

热点排行