In my game that I am making, there is a Properties file that stores the difficulty, high score etc.
What I would like to do is see if the properties file has just been created or if the section is null (if the option isn't there)
In my game that I am making, there is a Properties file that stores the difficulty, high score etc.
What I would like to do is see if the properties file has just been created or if the section is null (if the option isn't there)
I would suggest using the java.io.File:
import java.io.*;
File f=new File("filePathName");
if(f.exists()&&!f.isDirectory()){
//Insert specific code
}