Question about difference between text file and database

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi in a simple application that consists of a couple of user input
forms. I'm wondering what the difference is between using a database
technology and a plain text file?

I've been working on this program for a week or so now and its a hobby
project. I have never understood how to work with databases in visual
studio (although I have strung together a couple of Microsoft access
databases in the past, by trial and error.)

As I don't understand databases I've opted to store the information in
a simple text file. I am delimitting fields with semicolons and using a
fixed format, so for instance I know the name of the person is always
the fifth delimitted bit of data on each line. So to search for a
particular persons records, I have written a class that searches the
fifth bit of data on each line for a matching name. And returns the
results as an array.

I'm just about to add some kind of primary key functionality to my text
file by numbering each record. I'm going to check the text file for
it's last entrys primary key and increment this by one to use as the
next records primary key.

All appears to be working ok.

My question is, am i fundamentally missing some point here? Or is my
simple text file, just as good as a 'database' for my project?

Thanks,

Gary.

.



Relevant Pages

  • Re: PHP 5 PDO Transactions for MySQL - how to create multiple tables at once that depend on each
    ... I've been using PHP 5 and PDO for databases along with a MYSQL 5 database. ... I've not used transactions before in MySQL 5 but I was thinking about ... Created the new entry in table TFO and stores the new Primary Key ID ... Sequences are needed for those databases which don't support autoincrement. ...
    (comp.lang.php)
  • Re: How should I generate a primary key?
    ... A hash key index has its limitations though. ... performance is not the main reason for my arguments but I add it in as ... the point is that most databases do not ... have a problem with a single incrementing value or GUID as the primary key ...
    (comp.databases)
  • Re: primary key in DAO pattern
    ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
    (comp.lang.java.programmer)
  • Re: primary key in DAO pattern
    ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
    (comp.lang.java.help)
  • Re: primary key in DAO pattern
    ... DO NOT use an auto incrementing integer as ... I use the DAO design pattern. ... >DAO that links my system to different databases with different schema. ... >My question is how to design the primary key in my system for each ...
    (comp.lang.java.databases)