Example:
test = open ('test.txt', 'w')
test.write ('6000')
test.close ()
How do I convert the contents of the .txt file to integer in order to be able to do operations with it? if you can not do this, how can I save data without losing it when restarting my program?