private static void writeFile(File file,byte[] input) throws IOException {
  try (OutputStream os=new FileOutputStream(file)){
    os.write(input);
  }
 }

private static void writeFile ( File file , byte [ ] input ) throws IOException { try ( OutputStream os = new FileOutputStream ( file ) ) { os . write ( input ) ; } }
writes a single output file .
