Thanks
Many scripts use flat files because they are very handy for smallish data sets. Also, scripting languages like perl could easily slice and dice them.
Usually one record per line, with a seperating character to indicate the columns. The first line may or may not contain the column names.
Example of the contents of a flat text database file, with the first line containing the column names:
name¦address¦mailinglist
joe¦joe@example.com¦yes
mary¦mary@example.com¦no
pete¦pete@example.com¦no
Such as in space/tab/etc.. delimited way.
Its a very low tech quick way to keep data. Easy for a small amounts of information (such as under 50.000 rows) since the file gets paged to memory if being used.
But as soon as you start using any serious amount of data its structure becomes a showstopper. Insertions, deletes, sorts and such slow it tremendously down.
Such as
name1¦address1¦Town1¦country1¦planet1
name2¦address2¦Town2¦country2¦planet2
name3¦address3¦Town3¦country3¦planet3
........
or
name1 address1 Town1 country1 planet1
name2 address2 Town2 country2 planet2
name3 address3 Town3 country3 planet3
It is possible sometmes to create a pseudo-flat file within a relational database.
I had a relational DB that needed to read through 10,000,000 rows on the primary table, then make joins to other tables. Processing was a nightmare, so we decided to let the DB do the joins and create one table instead of reading from 7.
In essence we had a flat file, but the processing time was exponentially quicker.
The answer is yes and you can also create a psuedo relational db from flat files.
You didn't give enough details from your example, but the number of rows is not the deciding factor in what you did. Other considerations are the number of rows returned for each query and the number of columns of information.
If you need more help let me know.