title: C#: How to check user console input against a column in a .csv?
body: <p>Yo,</p>
  
  <p>I am fairly new to C# and I'm making a small text based console RPG game just for practice and I was wondering if there was anyway I could make something similar to this:</p>
  
  <ul>
  <li>Ask user for name</li>
  <li>Ask user for password</li>
  <li>Check if the name is in column 1 of a .csv file</li>
  <li>If it is, check if the password is in column 2 and in the same row as the name</li>
  <li>If everything checks out, load the values from columns 3 and 4 in the same row as
  the name and password into corresponding values like health and level</li>
  </ul>
  
  <p>Here's an example .csv if I didn't really explain it well:</p>
  
  <pre><code>"charactername", "password123", "health", "level"
  "Oswald", "498562a", "100", "4"
  "Hammerfist", "98457813", "77", "6"
  </code></pre>
  
  <p>So just for the sake of clarity, this is what I'm thinking:</p>
  
  <ul>
  <li>Enter your username: Oswald</li>
  <li>Enter your password: 498562a
  <ul>
  <li>Program reads through column 1 of the file looking for "Oswald" and finds a match</li>
  <li>Program then checks to see if the password value is in the same row but in 
  column 2 of the file and checks to see if it matches the user input, it matches it</li>
  <li>Program then loads the health and level values into character variables</li>
  </ul></li>
  <li>Entrance Successful</li>
  </ul>
  
  <p>Is there a way to do this? Am I overlooking a simple solution? Or should I try and go about it a different way? I'm just don't want to hard code the values into a Dictionary or List or Array or whatever. I'm not looking for security at this stage either, it's just for practice and fun.</p>
  
  <p>Thanks in advance! Let me know if you need a better understanding of what I'm trying to do and I'll try to explain the best I can.</p>