I am quite new to programming and I am coding simple game in Python (case opening from CSGO). I have list with some things in it - example ["P250 - Iron Clad", "P2000 - Imperial Dragon"] and I am searching for the best way to save it to txt file after game closes, and then again read it after game starts. I have tried soo many ways but it still doesn't work rly. Can you suggest me some idea? Thanks. :-)
my current save code:
with open("userskins.txt", "w") as text_file:
text_file.write(str(skinsall))
my current load code /DOESN'T WORK/ I don't know how to convert this type of str (more words at one item) into list
file2 = open("userskins.txt", "r")
skinsall = (file2.read())