Best practice advice

DOS specific questions.
Post Reply
Gablea
Posts: 1104
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Best practice advice

Post by Gablea »

Hi everyone,

Just wanted to get some guidance on something

I am planning on making a dos only program and I would like to know how to store data.

At the moment my dos apps use a csv file to store data. It this is not very easy to update and delete etc so what would be my best option? This project is a dos only project.
badidea
Posts: 2586
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Best practice advice

Post by badidea »

Like a simple database? Some kind of telephone book?

Read the complete csv-file into memory at the start (or on open), do all changes (delete, update) in memory, write a new version of the csv-file on exit (or save)? Save it under a new name (or copy the old one) for automatic backups of the file?
Gablea
Posts: 1104
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: Best practice advice

Post by Gablea »

Would that be practical for a database that could hold up to 10,000 items?

Is there anything for DOS that would work like SQL?
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: Best practice advice

Post by caseih »

Have you tried this dos port of sqlite?
http://www.bttr-software.de/forum/mix_e ... p?id=12278
Plasma
Posts: 205
Joined: May 27, 2005 5:22
Location: Earth
Contact:

Re: Best practice advice

Post by Plasma »

BTrieve and dBASE were popular DBs in the DOS days. But it was all 16-bit real mode stuff.
Post Reply