Opens a file in write mode and creates a Node.js-like WriteStream.
The path to the file to be opened.
Optional
Options for the WriteStream and file opening (e.g., encoding, highWaterMark, mode).
encoding
highWaterMark
mode
A WriteStream object for writing to the file.
Opens a file in write mode and creates a Node.js-like WriteStream.