0

Anyone knows if it is posible to work with files in the SoloLearn platform?

22nd Aug 2017, 5:15 PM
Andres Restrepo
Andres Restrepo - avatar
4 Answers
+ 4
...and in Javascript you store files in memory for processing. SoloLearn's write access is restricted; that includes cookies and local storage. You can read local files but should know exact file names to make that practical...probably only for you. Some SoloLearn codes import local scripts (file not found is silent for all but the author) but if I recall correctly... I needed a "cache buster" whenever I saved a change: SoloLearn code... <script src="/sdcard/js/myfile.js?cachebuster=1...2...3...etc"></script> https://code.sololearn.com/Wq4SvyF5GPjd/?ref=app https://code.sololearn.com/WXB3P1v6DUdY/?ref=app https://code.sololearn.com/WDATDt9GuboU/?ref=app https://code.sololearn.com/WlEab312L9WR/?ref=app
23rd Aug 2017, 2:56 AM
Kirk Schafer
Kirk Schafer - avatar
+ 6
The files are stored in the virtual environment of the Code Playground only. They are not stored between the code's executions. I am sure Java's implementation allows that too: https://code.sololearn.com/cldfpgpUylMp/?ref=app
22nd Aug 2017, 8:36 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
0
Thanks for your answer, where do you store the file. Can you do it in Java or Javascript?
22nd Aug 2017, 8:32 PM
Andres Restrepo
Andres Restrepo - avatar