Hello friends,
I want to copy files of extensio .bmp , .png, .tif , etc.
when I execute the following code i get errors in the file copied.
FileReader fr=new FileReader("D:/image.bmp");
BufferedReader br=new BufferedReader(fr);
FileReader fw=new FileWriter("D:/copyImage.bmp");
String s;
while((s=br.readLine())!=null)
{
fw.write(s);
fw.write(System.getProperty("line.separator"));
}