From 4d2393b515ca5bf191eac7342f6f2a970416d8b7 Mon Sep 17 00:00:00 2001 From: Mohd Arman <78647475+arizzaa13@users.noreply.github.com> Date: Sun, 3 May 2026 13:17:48 +0530 Subject: [PATCH] Update explanation on reading files with streams Clarify that using streams for reading files is more memory efficient. Signed-off-by: Mohd Arman <78647475+arizzaa13@users.noreply.github.com> --- pages/manipulating-files/reading-files-with-nodejs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/manipulating-files/reading-files-with-nodejs.md b/pages/manipulating-files/reading-files-with-nodejs.md index 1de56db..0693d3e 100644 --- a/pages/manipulating-files/reading-files-with-nodejs.md +++ b/pages/manipulating-files/reading-files-with-nodejs.md @@ -85,7 +85,7 @@ All three of `fs.readFile()`, `fs.readFileSync()` and `fsPromises.readFile()` re This means that big files are going to have a major impact on your memory consumption and speed of execution of the program. -In this case, a better option is to read the file content using streams. +In this case, a better option is to read the file content using streams as it is more memory efficient. ```mjs import fs from 'fs';