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.
Best practice advice
Re: Best practice advice
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?
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?
Re: Best practice advice
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?
Is there anything for DOS that would work like SQL?
Re: Best practice advice
Have you tried this dos port of sqlite?
http://www.bttr-software.de/forum/mix_e ... p?id=12278
http://www.bttr-software.de/forum/mix_e ... p?id=12278
Re: Best practice advice
BTrieve and dBASE were popular DBs in the DOS days. But it was all 16-bit real mode stuff.