code: public static boolean writeProperties(File _file, Properties _props) {
          LOGGER.debug("Trying to write Properties to file: " + _file);
          try (FileOutputStream out = new FileOutputStream(_file)) {
              _props.store(out, _file.getName());
              LOGGER.debug("Successfully wrote properties to file: " + _file);
          } catch (IOException _ex) {
              LOGGER.warn("Could not save File: " + _file, _ex);
              return false;
          }
          return true;
      }
docs: Writes a properties Object to file.
  Returns true on success, false otherwise.
  @param _file
  @param _props
  @return true on success, false otherwise