in my game i’m loading properties files from a specific level folder with this code:
Properties prop = new Properties
public void LoadLevel(int levelID) {
try {
prop.load(new FileInputStream("/resources/levels" + levelID + "lev.properties"));
....snip....
if I want to load another level, how do I unload the last level’s properties file?
I found a solution, but it was blurred as the site was pay only, so I came crawling back here 😀
Propertiesis aHashtable. You canclearit.