+ 15

Saving files in SoloLearn?

I don't think we can, but is it possible to save files to SoloLearn servers? you know like a .txt or maybe a .json file? I'm curious because my next code is gonna need to do this. Edit: this is actually an interesting development, this is supposed to print the entire path but it doesn't. https://code.sololearn.com/cTujXEUtMPRF/?ref=app

18th Apr 2017, 2:36 AM
SoraKatadzuma
SoraKatadzuma - avatar
15 Respuestas
+ 16
You can do save files, you can also read from those files, but it's limited to per-run usage only. Files get wiped once your program ends.
18th Apr 2017, 5:11 AM
Hatsy Rei
Hatsy Rei - avatar
+ 10
@Dipan Nanda, for what I want to do, I might be saving hundreds if not thousands of files, so that's not viable
18th Apr 2017, 3:08 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 10
@Dipan Nanda, for what I want to do, I might be saving hundreds if not thousands of files, so that's not viable
18th Apr 2017, 3:09 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 9
It does not answer you question, but I would like to know if it can be done as well. If it could be done it would allow for bigger and better codes.
18th Apr 2017, 2:42 AM
Manual
Manual - avatar
+ 9
highly awaited feature....
18th Apr 2017, 2:56 AM
Ronit Kumar
Ronit Kumar - avatar
+ 9
Well, here's what I was thinking, our codes that we create here get saved somewhere. I know JavaScript can use Node.js to save files and PHP can save files. I need JavaScript for the code I wanna do. So I guess a better question is, does SL support Node. But if we could access the file region our codes are saved in, could it be possible to save other files there?
18th Apr 2017, 3:00 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 9
@Edward, hmmm, okay I retract my statement, but I dunno how they would separate executable processes
18th Apr 2017, 3:06 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 9
No, it's supposed to print the entire path of where the code is saved, but it doesn't.
18th Apr 2017, 3:29 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 7
So pretty much no persistence? Well that's garbage
18th Apr 2017, 5:17 AM
SoraKatadzuma
SoraKatadzuma - avatar
+ 6
i think before the files, we need to see real time code inputs
18th Apr 2017, 2:58 AM
Edward
+ 6
@Dipan That saving a few file would not be a big deal. I wonder want people will do with that. It could go both ways.
18th Apr 2017, 3:20 AM
Manual
Manual - avatar
+ 5
I got it. Real time input would be great from the app/sites web languages.
18th Apr 2017, 3:00 AM
Manual
Manual - avatar
+ 3
ah ok lol
18th Apr 2017, 3:07 AM
Edward
+ 2
security risk? how so? not that im trynna be skeptical against u. just curious how its risky
18th Apr 2017, 3:03 AM
Edward
+ 2
what does it do. does that allow us to save files
18th Apr 2017, 3:27 AM
Edward