getFileSink(path: string,options?: FileSinkOptions,): Sink & Disposable
Get a file sink.
Note that this function is unavailable in the browser.
path: string
A path to the file to write to.
optional
options: FileSinkOptions
The options for the sink.
Sink & Disposable
A sink that writes to the file. The sink is also a disposable object that closes the file when disposed.