Is there a way to take a .js file contents such as login and password and pass the appended information to a index? I am trying to securely load saved user information and pass it into a index to validate login methods???

In visual basic I use the StreamReader, and StreamWriter to write and read information to a file. I can then load that file and convert it into a string to compare against a text box.