Deno.FsFile
The Deno abstraction for reading and writing files.
class FsFile implements Reader, ReaderSync, Writer, WriterSync, Seeker, SeekerSync, Closer { }
constructor(rid: number);
readonly readable: ReadableStream<Uint8Array>;
readonly rid: number;
readonly writable: WritableStream<Uint8Array>;
close(): void;
read(p: Uint8Array): Promise<number | null>;
readSync(p: Uint8Array): number | null;
stat(): Promise<FileInfo>;
statSync(): FileInfo;
truncate(len?: number): Promise<void>;
truncateSync(len?: number): void;
write(p: Uint8Array): Promise<number>;
writeSync(p: Uint8Array): number;