0

How could I open a file in python using solo learn .?

How could I open a file in python using solo learn .?

11th Sep 2020, 12:10 PM
Akash Dubey
Akash Dubey - avatar
4 Answers
+ 6
If you want to open a file that is stored on sololearn server, there are some restrictions: - The file that you want to open, must be created before opening in the same program run - After the program execution is finished, the file on sololearn server will be deleted automatically This means you can do: - create a new file with open(...) - write some content to the file - close the file - open the file again - read the content of the file and do something with it - close the file
11th Sep 2020, 1:14 PM
Lothar
Lothar - avatar
+ 2
Lothar thank you for explaining
12th Sep 2020, 3:19 AM
Akash Dubey
Akash Dubey - avatar
0
You cant, the interpreter is on their servers wich dont have access to your files.
11th Sep 2020, 1:08 PM
Slick
Slick - avatar
0
Slick you should try once what Lothar has said
12th Sep 2020, 3:37 AM
Akash Dubey
Akash Dubey - avatar