+ 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
15 odpowiedzi
+ 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.
+ 10
@Dipan Nanda, for what I want to do, I might be saving hundreds if not thousands of files, so that's not viable
+ 10
@Dipan Nanda, for what I want to do, I might be saving hundreds if not thousands of files, so that's not viable
+ 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.
+ 9
highly awaited feature....
+ 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?
+ 9
@Edward, hmmm, okay I retract my statement, but I dunno how they would separate executable processes
+ 9
No, it's supposed to print the entire path of where the code is saved, but it doesn't.
+ 7
So pretty much no persistence? Well that's garbage
+ 6
i think before the files, we need to see real time code inputs
+ 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.
+ 5
I got it.
Real time input would be great from the app/sites web languages.
+ 3
ah ok lol
+ 2
security risk? how so? not that im trynna be skeptical against u. just curious how its risky
+ 2
what does it do. does that allow us to save files