Function createFileReadStream

  • Create a read stream for a file with optional options.

    Parameters

    • path: string

      Path to the file.

    • Optionaloptions: { encoding?: BufferEncoding; end?: number; start?: number }

      Options for the read stream.

    Returns ReadStream

    A read stream for the file.