Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/files.ts>File

A modern runtime for JavaScript and TypeScript.
Go to Latest
class File
implements Reader, ReaderSync, Writer, WriterSync, Seeker, SeekerSync, Closer
import { File } from "https://deno.land/x/deno@v1.0.0/cli/js/files.ts";

Constructors

new
File(rid: number)

Methods

close(): void
read(p: Uint8Array): Promise<number | null>
readSync(p: Uint8Array): number | null
seek(offset: number, whence: SeekMode): Promise<number>
seekSync(offset: number, whence: SeekMode): number
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number