reading and writing to the same file
in
Android Processing
•
2 years ago
Hi,
Can anyone tell me how to go about reading and writing to the same file in Android mode?
My sketch runs perfectly in 'normal' mode, periodically reading from, and overwriting a text file. But, in Android mode it appears the text file needs to be moved into the "data" folder in order to be located - This leaves me unable to overwrite it as
saveStrings() outputs to the main sketch folder? I've tried adding a path:
saveStrings("data/alpine.txt", levelData);
and got the following error when launching on the AVD :
java.lang.IllegalArgumentException: File data/alpine.txt contains a path separator
Help appreciated
Dave
1