code: public static void saveChecksumFile(File csFile, Properties csprops, String reason) {
          FileOutputStream fOut = null;
          try {
              fOut = new FileOutputStream(csFile);
              csprops.store(fOut, null);
              logger.log(Level.FINEST, "Successfully updated the checksum file " + csFile.getAbsolutePath() + reason);
          } catch (Exception e) {
              logger.log(Level.FINEST, "Failed to save checksum file " + csFile.getAbsolutePath() + reason, e);
          } finally {
              InstallUtils.close(fOut);
          }
      }
docs: Saves the checksum properties to csFile.
  
  @param csFile Output file
  @param csprops Checksum properties file
  @param reason the reason for saving the checksum file