Program constant - How to keep a constant on program restart

  • Автор темы Автор темы bambinou
  • Дата начала Дата начала

bambinou

Client
Регистрация
22.08.2011
Сообщения
442
Реакции
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
 
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 :)
 
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.
 
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
 

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