private static void copyPicture1() throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader( new FileInputStream("f:\\1.jpg")));
BufferedWriter bw=new BufferedWriter(new OutputStreamWriter(new FileOutputStream("f:\\222.txt")));
String line=null;
/*byte[] b=new byte[1024];
int len=0;*/
while((line=br.readLine())!=null){
bw.write(line);
bw.flush();
}
bw.close();
}
这样为啥不行???
|
|