code: def write(self, env_file):
          
          try:
              with open(env_file, "w") as out_file:
                  self.config.write(out_file)
          except Exception as exp:  # pylint: disable=broad-except
              print("Dumping environment file raised an error: %s. " % exp)
docs: Write the Alignak configuration to a file
  
          :param env_file: file name to dump the configuration
          :type env_file: str
          :return: True/False