Writes a string to a file synchronously, replacing existing contents.
The content to write
The file path
The Gio.File that was written
Writes a string to a file synchronously, replacing existing contents.