Best practice advice

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

Best practice advice

Postby Gablea » Feb 18, 2017 20:44

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: 544
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: Best practice advice

Postby badidea » Feb 19, 2017 11:31

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: 850
Joined: Apr 06, 2010 0:05
Location: Northampton, United Kingdom
Contact:

Re: Best practice advice

Postby Gablea » Feb 20, 2017 1:39

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: 1036
Joined: Feb 26, 2007 5:32

Re: Best practice advice

Postby caseih » Feb 20, 2017 5:47

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

Re: Best practice advice

Postby Plasma » Feb 20, 2017 6:08

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

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest