write_file

write_file(string: str, path: Path)

Write the string to a file at the specified path.

If the file already exists, it will be overwritten.

Parameters

string : str

The content you want written to the file.

path : Path

The full path to the file you want to create, including the file name and extension.

Returns

Path

The path to the file that was created.