Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript fs read

fs.readFile('/etc/passwd', (err, data) => {
  if (err) throw err;
  console.log(data);
});
Source by nodejs.org #
 
PREVIOUS NEXT
Tagged: #javascript #fs #read
ADD COMMENT
Topic
Name
1+9 =