readable property

ReadableStream<Uint8List> get readable

A {@linkcode ReadableStream} instance representing to the byte contents of the file. This makes it easy to interoperate with other web streams based APIs.

const file = await Deno.open("my_file.txt", { read: true });
const decoder = new TextDecoder();
for await (const chunk of file.readable) {
 console.log(decoder.decode(chunk));
}

Implementation

_i5.ReadableStream<_i9.Uint8List> get readable => _i3.getProperty(
      this,
      'readable',
    );