What is the most effective method of storing and recalling data?
<p>I've been wanting to build a pretty big project which pretty much mimics Twitter, I've just started it and have run into a little error with account creation. I was wondering what the best method of storing and recalling data is. I'm well aware I can use .txt files to do this, but then I've found it's trickier to make the program recognize the structure of the data.</p>

<pre><code>For example, the file might look like this:
acnt - twigman
pass - yellow
</code></pre>

<p>And the user creating an account might use the same name, and I would need to stop that, but I wouldn't know how to make the program know where the username starts and ends.</p>

<p>If I could use a database within the Python program, that would be a heck of a lot easier, it would mean the program can run as just one file and it would be easier to code. The program could also recognize the beginning and end of a user name without needing to write more script for it.</p>

<p>Thank you for your help.</p>

<p>Use SQLite or any other RDBMS like PostgreSQL.
To use Python with RDBMS: 
<a href="https://wiki.python.org/moin/DatabaseInterfaces" rel="nofollow">https://wiki.python.org/moin/DatabaseInterfaces</a></p>

python database import export