def METHOD_NAME(self, target: str, prefix="", end="\n"):
    if target == "console":
        print(prefix + str(self.get()), end=end)
    else:
        with open(target, "a") as f:
            f.write(prefix + str(self.get()) + end)