Function createWriteStream

  • Opens a file in write mode and creates a Node.js-like WriteStream.

    Parameters

    • path: PathLike

      The path to the file to be opened.

    • Optional _options: BufferEncoding | WriteStreamOptions

    Returns WriteStream

    A WriteStream object for writing to the file.