title: Reading a file or searching in a database?
body: <p>I am creating a web-based app for android and I came to the point of the account system. Previously I stored all data for a person inside a text file, located <code>users/&lt;name&gt;.txt</code>. Now thinking about doing it in a database (like you probably should), wouldn't that take longer to load since it has to look for the row where the name is equal to the input?</p>
  
  <p>So, my question is, is it faster to read data from a text file, easy to open because it knows its location, or would it be faster to get the information from a database, although it would have to first scan line by line untill it reaches the one with the correct name?</p>
  
  <p>I don't care about the safety, I know the first option is not save at all. It doesn't really matter in this case.</p>
  
  <p>Thanks,</p>
  
  <p>Merijn</p>