Function createFileReadStream

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

    Parameters

    • path: string

      Path to the file.

    • Optional options: {
          encoding?: BufferEncoding;
          end?: number;
          start?: number;
      }

      Options for the read stream.

      • Optional encoding?: BufferEncoding
      • Optional end?: number
      • Optional start?: number

    Returns ReadStream

    A read stream for the file.