Re: database theory
- Posted by Daniel Berstein <daber at PAIR.COM> Nov 20, 1998
- 630 views
>In the Euphoria package somewhere, (it might have been in the demo >program), it said that to create a large database one would use seek and >where. Could someone please explain to me how that would be done to access >a database? Thanks. If you're going to create and maintain a small database (I would say up to 100 records, but that depends on the size of the record), it much easier to just print() and get() your database as an Euphoria sequence. If the database is bigger you should load into memory only the record(s) that you need (using get() loads the complete file into memory!). Using seek() you can make your program to position the next-to-be-read-character pointer. where() tells you where is this pointer pointing. Regards, Daniel Berstein daber at pair.com