How can I declare a variable which would save sting forever?
I mean if the user closes and restarts the program, this string value is not lost.
How can this be done?
There are a number of different ways to store state for an application. The approach really depends on the type of data you are storing and other requirements
Options
Save the variable value to a database or other storage.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With