Writes a string to a file, replacing any existing content.
The file path to write to.
The string content to write.