Guest User

Untitled

a guest
Aug 29th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Read authentication credentials from file
  2. var fs = require('fs');
  3.  
  4. fs.readFile('credentials.txt', 'utf8', function(err, contents) {
  5. var text = contents.split("\n")
  6. text[1] = text[1].substring(0, text[1].length - 1);
  7. text[2] = text[2].substring(0, text[2].length - 1);
  8. username = text[1];
  9. password = text[2];
  10. });
Add Comment
Please, Sign In to add comment