code: public static boolean write(File pFile, byte[] pData) throws IOException {
          boolean success = false;
          OutputStream out = null;
  
          try {
              out = new BufferedOutputStream(new FileOutputStream(pFile));
              success = write(out, pData);
          }
          finally {
              close(out);
          }
          return success;
      }
docs: Writes the contents from a byte array to a file.
  
  @param pFile The file to write to
  @param pData The byte array to write
  @return {@code true}, otherwise an IOException is thrown.
  @throws IOException if an i/o error occurs during write.