writeText

Writes a string to a file, replacing any existing content.

Parameters

path

The file path to write to.

content

The string content to write.

See also