Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var readline = require('readline');
- var rl = readline.createInterface({
- input: process.stdin,
- output: process.stdout
- });
- var input = [];
- rl.on('line', function (data) { // line example: "0 0 1 1"
- input.push(data);
- });
- rl.on('close', () => {
- process.stdout.write(input.toString());
- process.exit(0);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement