Skip to content

Commit 8a61c71

Browse files
committed
Get string instead of Buffer
1 parent 350b703 commit 8a61c71

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

JavaScript/1-readFileSync.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
const fs = require('fs');
44

5-
const buffer = fs.readFileSync('1-readFileSync.js');
6-
console.log(`Buffer length: ${buffer.length}`);
7-
console.log(buffer);
8-
95
const data = fs.readFileSync('1-readFileSync.js', 'utf8');
106
console.log(`Data length: ${data.length}`);
117
console.log(data);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy