I have a code for a game.
money_file = open ('money.$','r').read() money_file = str(money_file) money = int(money_file)
But everytime I run it, it returns an error:
Traceback (most recent call last): File "C:\Users\eeo.j\Desktop\CX6 SDK\CX6 Normal\CX6.py", line 86, in <module> money = int(money_file) ValueError: invalid literal for int() with base 10: ''
I need to get the money variable into an interger, but I can't.
Anyone got any idea what's going on?