Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

synchronous file read

const fs = require('fs');
const data = fs.readFileSync('/file.md'); // blocks here until file is read
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #synchronous #file #read
ADD COMMENT
Topic
Name
9+4 =