Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

After opening the file and loading it's content into python, the next step would be to then fiddle with the data till it matches the format your program desires. It depends on how the data was saved and what it is. I find it helpful to first write code that saves the data and then after I've checked that it creates a file and that the file holds the testdata, then I write the code to load from a file to the game. You can use file.write or use a library like pickle.

So that would be:

with open('my_data.csv') as file: 
    file.write(yourData)

thank you very much! i try it for the next time