Alright so I'm working on a project in my free time and right now I'm trying to get it to save the date the program is first run as a .txt file. During this I get a NullPointException in trying to save the date as the string
Any clues?
_________________________________________________________________
String[] SaveData;
void newGame(){ //Makes new save data.
println(year()+ ":" + day() + ":" + hour() + ":" + minute()); //prints the date for help debugging incase something like this happens.
SaveData[0] = year()+ ":" + day() + ":" + hour() + ":" + minute(); //Should save date into [0] of SaveData this is were error is.
println(SaveData[0]); //Never makes it to here.
saveStrings("Save.txt", SaveData);
}
1