0

When you write text to a file using any language in the Sololearn app, where is the file saved ?

Hi, For Android OS(marshmallow), does the file get saved to your phone storage or SD card, How can you retrieve it. Thanks.

8th Jul 2017, 11:09 AM
samuel
samuel - avatar
6 ответов
+ 6
You can actually write to a text file, and read from it. The file is stored on server-side, but will be wiped once your compile session ends. https://code.sololearn.com/cat8V35WwNwr/?ref=app
8th Jul 2017, 11:35 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
@Karl I actually have an infinite file spawner code, the trick is C.Playground should timeout before too many files are created. The files are wiped after each session so there shouldn't be any issues on server-side. :D
8th Jul 2017, 11:42 AM
Hatsy Rei
Hatsy Rei - avatar
+ 5
@Karl I've never touched web and hence do not know.
8th Jul 2017, 11:58 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Don't think you can write to a file on SL, because the code is compiled/interpreted on a remote server.
8th Jul 2017, 11:27 AM
Karl T.
Karl T. - avatar
+ 4
@Hatsy, no security issues with this? I wonder what would happen if someone created a bunch of files on SL's server.
8th Jul 2017, 11:38 AM
Karl T.
Karl T. - avatar
+ 4
@Hatsy, do you know if you can do that with JS? I really don't think because you could potentially upload malicious code there and cause some serious problems.
8th Jul 2017, 11:51 AM
Karl T.
Karl T. - avatar