Advertisement
Guest User

Fileinput, output - kopírování souborů

a guest
May 17th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.36 KB | None | 0 0
  1. public static void main(String[] args) throws IOException {
  2.         FileInputStream fis = new FileInputStream("vystup.txt");
  3.         FileOutputStream fos = new FileOutputStream("vystup111.txt");
  4.        
  5.         int bajt;
  6.         while((bajt = fis.read()) != -1){
  7.             fos.write(bajt);
  8.         }
  9.        
  10.         fis.close();
  11.         fos.close();
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement