本帖最后由 孙百鑫 于 2013-6-30 08:43 编辑
- class Test1
- {
- public static void main(String[] a)throws IOException
- {
- BufferedReader br=new BufferedReader(new InputStreamReader(new FileInputStream("D:\\javafile\\day19\\src\\a.jpg")));
- BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("D:\\javafile\\day19\\src\\b.jpg")));
- String s=null;
- while((s=br.readLine())!=null)
- {
- System.out.println(s);
- bw.write(s);
- }
- br.close();
- bw.close();
- }
- }
复制代码 比如35k的图a,复制了图b却只有32k,打不开
|