Can i save file inside php or c++ code or somewhere on sololearn platform? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 17

Can i save file inside php or c++ code or somewhere on sololearn platform?

If not Maybe there is some other way to save data in file, which can be opened every time I want to, even after close and open sololearn app?

23rd Mar 2019, 6:44 PM
Sławek J.
11 Answers
+ 9
I do not said anything about saving code. I know that. I want that my programme save something in text file. And for example read it for two days when i come back on sololearn
23rd Mar 2019, 7:14 PM
Sławek J.
+ 9
Thanks, I will try it.
24th Mar 2019, 6:08 AM
Sławek J.
+ 8
You can make txt file ? I supose not
23rd Mar 2019, 7:56 PM
Sławek J.
+ 8
It do not work. Errror. So if no one have a better idea Then only solution I think about from the beginning is external server
24th Mar 2019, 7:09 AM
Sławek J.
+ 8
For example. Website server could be dangerous. Writable file can encourage bad people :)
24th Mar 2019, 7:48 AM
Sławek J.
+ 8
But i want that people can see some stuff from this file.
24th Mar 2019, 8:25 AM
Sławek J.
+ 7
It wont work it should be text file
23rd Mar 2019, 8:10 PM
Sławek J.
+ 3
Oh, then you can do that in the same way. Just type your text instead of source code and just don't run that.
23rd Mar 2019, 7:24 PM
Jan Štěch
Jan Štěch - avatar
+ 1
://Yes you can type a text and save as code
23rd Mar 2019, 6:55 PM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
Of course! Code playground is made just for this purpose. Just click on "{ }" symbol in the main menu, tap on "+", choose the language and write your code. Don't forget to save your creation.
23rd Mar 2019, 6:56 PM
Jan Štěch
Jan Štěch - avatar
+ 1
No, you can't, but you can use e. g. .cpp file as .txt file. It has the same result.
23rd Mar 2019, 7:58 PM
Jan Štěch
Jan Štěch - avatar