Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to store data in C++

Tags:

c++

qt4

I'm just learning C++, just started to mess around with QT, and I am sitting here wondering how most applications save data? Is there an industry standard? Do they store it in a XML file, text file, SQLite? What about sensitive data that say accounting software would need to save? I'm just interested in learning what the best practices for this are.

Thanks

like image 840
Joe Avatar asked Oct 18 '25 03:10

Joe


1 Answers

This question is way too broad. The only answer is it depends on the nature of the particular application and the data, and whether or not it is written in C++ has very little to do with it.

For example, user-configurable application settings are often stored in text files, but on Windows they are typically stored in the Registry. Accounting applications typically keep their data in a database of some sort.

like image 193
Dima Avatar answered Oct 19 '25 18:10

Dima



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!