Reading save files from userdata directory

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TheJollyReaper

I want to be able to have multiple save files. I’ve already figured out how to create save files based on the player’s character name, and I know how to load a save. What I’m struggling with is getting the list of save files. I want to be able to read the list of save files from the userdata directory, present them in a list, and then allow the user to select one to load.

Don’t know if it matters but my save files are in json.

:bust_in_silhouette: Reply From: exuin

The directory page has got you covered.