If data doesn't exist, saveStrings()
in
Android Processing
•
2 years ago
Hi all,
I'm reading and writing scores to text files like this:
saveStrings("\\sdcard\\playerInfo.txt", playerInfo);
playerInfo
= loadStrings("\\sdcard\\
playerInfo
.txt");
My question is, when the user runs the sketch, I want to use
saveStrings()
only if
playerInfo.txt doesn't already exist?
Can anyone please tell me how I might achieve this?
Thanks
Dave
2