Writes a string to a file, replacing any existing content.
Example:
var path = new Path ("/tmp/output.txt");
bool ok = Files.writeText (path, "Hello, World!");
| path |
path to the file. |
| text |
the string to write. |
|
true if write succeeded, false otherwise. |