Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

readfle nodejs

import { readFile } from 'fs';

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