title: Java: Read Line From File Based on Start of Line
body: <p>I know how to read from file using Java. What I want to do is read a specific line which starts with specific text.</p>
  
  <p>What I plan on doing is storing certain program settings in a txt file so I can retrieve them quickly when I exit/restart program.</p>
  
  <p>For example, the file may look something like this:</p>
  
  <pre><code>First Name: John
  Last Name: Smith
  Email: JohnSmith@gmail.com
  Password: 123456789 
  </code></pre>
  
  <p>The <code>:</code> would be the delimiter and in the program I want to be able to retrieve specific values based on the "key" (such as "First Name", "Last Name" and so on).</p>
  
  <p>I know I could store it to DB but I want to write it quickly to test my program without going through hassle of writing it to DB.</p>