Writes a string to a file asynchronously, replacing existing contents.
The content to write
The file path
A promise resolving to the Gio.File that was written
Writes a string to a file asynchronously, replacing existing contents.