import { createSync } from "https://deno.land/x/deno@v0.30.0/cli/js/files.ts";
Creates a file if none exists or truncates an existing file and returns
an instance of the File
object synchronously.
const file = Deno.createSync("/foo/bar.txt");
import { createSync } from "https://deno.land/x/deno@v0.30.0/cli/js/files.ts";
Creates a file if none exists or truncates an existing file and returns
an instance of the File
object synchronously.
const file = Deno.createSync("/foo/bar.txt");