Creates a BufferedWriter that writes to a file, replacing any existing content.
Example:
var writer = BufferedWriter.fromFile (new Path ("/tmp/out.txt"));
| path |
the file to write to. |
|
a new BufferedWriter, or null if the file cannot be opened. |