import re
import toml


def read_toml_file(file):
    """
    Read file with toml formatted data
    :file: Path of the file as String
    :return: New toml object
    """
    with open(file, "r") as f:
        marker = re.compile("^\\+\\+\\+")
        started = False
        data = ""
        for line in f:
            if re.match(marker, line):
                if started:
                    break
                else:
                    started = True
                    continue
            data = f"{data}{line}"

        return toml.loads(data)