Program constant - How to keep a constant on program restart

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Hello,


I need to have a constant that does not reset when the program restarts.
It is my understanding that the only way to get this is to create a text file and read it each time the program starts, am I correct?

Thanks
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 182
Баллы
113
Hello,


I need to have a constant that does not reset when the program restarts.
It is my understanding that the only way to get this is to create a text file and read it each time the program starts, am I correct?

Thanks
Hi. Text file. or some more advanced configuration file, but yes something whats on your PC. Or it can be online as well if you like. Logic is yours :-)
 

bambinou

Client
Регистрация
22.08.2011
Сообщения
436
Благодарностей
21
Баллы
18
Thanks, if I want the bot UI to be shipped with text files, how does it works please? As I will need to have many constants setups per bot threads.
Where shall I add these text files so they are uploaded to the bot(for resell).

Thank you.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 770
Благодарностей
1 182
Баллы
113
You can keep your files online, and make logic to check if the file is updated then download on any client PC.
You can also add constant variables in bot itself.
Just set default value in variables window and it will be used as const
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)