Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fs = require('fs');
- function fsReadUrls() {
- let links = []
- const str = fs.readFileSync('urls/test.txt', 'utf8');
- strLength = str.split('\r\n').length;
- for (var i = 0; i < strLength; i++) {
- links.push(str.split('\r\n')[i]);
- }
- console.log(links)
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement