Skip to main content
Module

x/uuid/lib/lib.deno_runtime.d.ts>Deno.open

Deprecated! UUID is part of the deno standard library
Latest
function Deno.open
import { Deno } from "https://deno.land/x/uuid@v0.1.2/lib/lib.deno_runtime.d.ts";
const { open } = Deno;

Open a file and return an instance of the File object.

  (async () => {
    const file = await Deno.open("/foo/bar.txt");
  })();

Parameters

filename: string
optional
mode: OpenMode

Returns

Promise<File>