Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
jackonhs
jackonhs's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Null Pointer Error in trying to save the date as string.
[4 Replies]
13-Mar-2011 11:11 AM
Forum:
Programming Questions
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);
}
«Prev
Next »
Moderate user : jackonhs
Forum