zut.files.write_text
- zut.files.write_text(path: str | PathLike, data: str, *, encoding: str | None = None, errors: str | None = None, newline: str | None = None, mkdir: bool = False, sudo: bool = False) None
Open the file in text mode, write to it, and close the file.