code: public static void setBytes(File file, byte[] bytes) throws IOException {
          IOGroovyMethods.setBytes(new FileOutputStream(file), bytes);
      }
docs: Write the bytes from the byte array to the File.
  
  @param file  the file to write to
  @param bytes the byte[] to write to the file
  @throws IOException if an IOException occurs.
  @since 1.7.1