Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. package io;
  2. import java.io.*;
  3.  
  4. public class CopyFile {
  5.     public static void main(String[] args) throws IOException{
  6.         File src=new File("properties.txt");
  7.         File des=new File("properties.back.txt");
  8.         FileInputStream fis=new FileInputStream(src);
  9.         FileOutputStream fos=new FileOutputStream(des);
  10.        
  11.         int data;
  12.         while((data=fis.read())!=-1){
  13.             fos.write(data);
  14.         }
  15.         fis.close();
  16.         fos.close();
  17.        
  18.     }
  19. }