Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Read authentication credentials from file
- var fs = require('fs');
- fs.readFile('credentials.txt', 'utf8', function(err, contents) {
- var text = contents.split("\n")
- text[1] = text[1].substring(0, text[1].length - 1);
- text[2] = text[2].substring(0, text[2].length - 1);
- username = text[1];
- password = text[2];
- });
Add Comment
Please, Sign In to add comment