+ 1

Application settings and other data

For example my c++ programme got this data from user while running int prog_settings[] = {1, 78, 16, 56, 91, 10, 23}; And i want to save it that my programme could use it by the next launch and prog_settings got this data again. How to do this? I accept answer on Python too if it's easier UPD: could you add some code pls with saving/unpacking data

29th Jul 2020, 10:05 AM
Quarz
5 Réponses
+ 4
The best way to save your data is to store them is some kind of file. This is supported by both C++ and python.
29th Jul 2020, 10:16 AM
Arsenic
Arsenic - avatar
+ 4
I don't know c++ at all so can't help in that😅 https://code.sololearn.com/crR4Xi6Qz17N/?ref=app
29th Jul 2020, 11:19 AM
Namit Jain
Namit Jain - avatar
+ 3
You want local storage?
29th Jul 2020, 10:13 AM
Namit Jain
Namit Jain - avatar
+ 2
Quarz do you want the code?
29th Jul 2020, 11:09 AM
Namit Jain
Namit Jain - avatar
0
Namit Jain, yes, pls
29th Jul 2020, 11:12 AM
Quarz