text: import logging
  import sys
  
  import toml
  
  from editor.constants import ASCII
  
  
  class Config(object):
      """Easy management for the configuration file."""
  
      def __init__(self) -> None:
          """
          Initializes the Config class.
  
          :returns: None
          :rtype: NoneType
  
          :Example:
  
          >>> cfg = Config()
          >>> chunk_size = cfg.chunk_size
          """
  
          try:
              with open("config.toml", "r", encoding="utf-8", errors="ignore") as file:
                  config = toml.load(file)
  
              if "Fore" in config["console"]["ascii"]:
                  from editor.color import Fore
  
              self.ascii = eval(config["console"]["ascii"])
              self.chunk_size = config["file"]["chunk_size"]
              self.config_1 = config["editor"]["config_1"]
              self.config_2 = config["editor"]["config_2"]
              self.config_3 = config["editor"]["config_3"]
  
              if not isinstance(self.ascii, str):
                  raise KeyError()
              elif not isinstance(self.chunk_size, int):
                  raise KeyError()
              elif not isinstance(self.config_1, list):
                  raise KeyError()
              elif not isinstance(self.config_2, list):
                  raise KeyError()
              elif not isinstance(self.config_3, list):
                  raise KeyError()
          except KeyError:
              logging.error("Failed to parse `config.toml`.")
              input()
              sys.exit(0)
          except OSError:
              logging.error("`config.toml` does not exist. Creating now.")
  
              with open("config.toml", "w", encoding="utf-8", errors="ignore") as file:
                  file.write(toml.dumps({
                      "console": {
                          "ascii": ASCII
                      },
                      "file": {
                          "chunk_size": 500000
                      },
                      "editor": {
                          "config_1": ["!"],
                          "config_2": ["!", "123", "1"],
                          "config_3": ["!", "123", "123!", "1", "1!"]
                      }
                  }))
  
              input()
              sys.exit(0)
          except SyntaxError:
              logging.error("ASCII in `config.toml` is invalid.")
              input()
              sys.exit(0)
  