This site requires JavaScript, please enable it in your browser!
Greenfoot back
mark.hayes
mark.hayes wrote ...

2012/10/9

storage.csv

mark.hayes mark.hayes

2012/10/9

#
is there some documentation available on storage.csv? i assume the file is initially created manually, and added to the scenario folder? i notice that even when the file is not there, UserInfo.isStorageAvailable() still returns true, while testing locally.
mark.hayes mark.hayes

2012/10/9

#
ok, i can see that the first call to store() creates the .csv file in the scenario folder.
danpost danpost

2012/10/9

#
Yes. UserInfo.isStorageAvailable() only checks to ensure that the user is logged in (if the user is not signed on, then storage will not be available). Locally, if you set the preferred user to an empty string (blank), the method would then return 'false'. It is best not to mess with the 'storage.csv' file (treat it as read-only). You can, however, just delete the file, and have a new one created from within the scenario by way of the 'store()' call (for testing purposes).
You need to login to post a reply.