title: How to code a very simple login system with java
body: <p>I need to create a system that checks a file for the username and password and if it is correct, it says whether or not in a label. So far I have been able to simply make one username and password equal to the variable, but need to link it to a file somehow. I am a noob programmer so lots of help is appreciated. Here is what I have under my authenticate button.</p>
  
  <pre><code>String pass;
  String user;
  user = txtUser.getText();
  pass = txtPass.getText();
  
  if(pass.equals("blue") &amp;&amp; user.equals("bob") ){
      lblDisplay.setText("Credentials Accepted.");
  }
  else{
      lblDisplay.setText("Please try again.");
  }     
  </code></pre>