fromFile


Description:

public static BufferedWriter? fromFile (Path path)

Creates a BufferedWriter that writes to a file, replacing any existing content.

Example:

    var writer = BufferedWriter.fromFile (new Path ("/tmp/out.txt"));

Parameters:

path

the file to write to.

Returns:

a new BufferedWriter, or null if the file cannot be opened.