class Deno.File
implements Reader, ReaderSync, Writer, WriterSync, Seeker, SeekerSync, Closer
Deprecated

The Deno abstraction for reading and writing files.

Constructors

new
File(rid: number)
[src]

Properties

readonly
readable: ReadableStream<Uint8Array>
[src]
readonly
rid: number
[src]
readonly
writable: WritableStream<Uint8Array>
[src]

Methods

close(): void[src]
read(p: Uint8Array): Promise<number | null>[src]
readSync(p: Uint8Array): number | null[src]
seek(offset: number, whence: SeekMode): Promise<number>[src]
seekSync(offset: number, whence: SeekMode): number[src]
stat(): Promise<FileInfo>[src]
statSync(): FileInfo[src]
truncate(len?: number): Promise<void>[src]
truncateSync(len?: number): void[src]
write(p: Uint8Array): Promise<number>[src]
writeSync(p: Uint8Array): number[src]