Function createReadStream

  • Opens a file in read mode and creates a Node.js-like ReadStream.

    Parameters

    • path: PathLike

      The path to the file to be opened.

    • Optional _options: BufferEncoding | ReadStreamOptions

    Returns ReadStream

    A ReadStream object for interacting with the file's contents.