From 62809cd6052c12bb6df59708c56f44cd49e64427 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Sun, 30 Aug 2020 07:19:31 +0800 Subject: [PATCH] docs(std/fs): remove stale references to readFileStr and writeFileStr (#7254) --- std/fs/README.md | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/std/fs/README.md b/std/fs/README.md index 1287df4892..b31d208146 100644 --- a/std/fs/README.md +++ b/std/fs/README.md @@ -174,37 +174,6 @@ async function printFilesNames() { printFilesNames().then(() => console.log("Done!")); ``` -### readFileStr - -Read file and output it as a string. Note: this module does not require the -`--unstable` flag. - -**ReadOptions** - -- encoding : The encoding to read file. lowercased. - -```ts -import { readFileStr, readFileStrSync } from "https://deno.land/std/fs/mod.ts"; - -readFileStr("./target.dat", { encoding: "utf8" }); // returns a promise -readFileStrSync("./target.dat", { encoding: "utf8" }); // string -``` - -### writeFileStr - -Write the string to file. Note: this module does not require the `--unstable` -flag. - -```ts -import { - writeFileStr, - writeFileStrSync, -} from "https://deno.land/std/fs/mod.ts"; - -writeFileStr("./target.dat", "file content"); // returns a promise -writeFileStrSync("./target.dat", "file content"); // void -``` - ### expandGlob Expand the glob string from the specified `root` directory and yield each result