Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var lineReader = require('readline').createInterface({
- input: require('fs').createReadStream('/proc/1/statm')
- });
- lineReader.on('line', function (line) {
- console.log('Line from file:', line);
- });
Add Comment
Please, Sign In to add comment