|
Posted by Jerry Stuckle on 03/29/06 13:36
Andy Jeffries wrote:
> On Tue, 28 Mar 2006 22:34:08 -0500, Jerry Stuckle wrote:
>
>>I'd use a database such as MySql or Postgres. They are ideally suited for
>>this kind of operation. And it's not that hard to program for them.
>
>
> I'd agree if he is the one inserting them in to a text file (he may be
> being given it by another party).
>
> If he only has the text file, he'd have to parse it either way to insert
> it into a DB or to just display it - so he might as well just display it.
>
> Cheers,
>
>
> Andy
>
Yes, he would have to parse it *once* to place all the information in the
database. As a flat file he would have to parse it every time he wants anything
from the database. And if the file format ever changes, he'll have to redo the
code every place he needs to access it.
Databases make your life so much simpler - even if you're not inserting into a
file. Even with static data I almost always put the information in a database;
it's just so much easier to access - and you don't run into problems like this.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|