+ 1

Can you help me please When I execute the code to open file on my computer.0😯 open("C\Users\PC\Desktop\file.txt") it is false?

openning file

17th Mar 2018, 12:23 PM
frantz_stephen
frantz_stephen - avatar
2 Answers
+ 7
Code Playground cannot access your local machine. In general, you cannot do file streams on SL, except to write to a temporary file which will be wiped after code execution.
17th Mar 2018, 12:27 PM
Hatsy Rei
Hatsy Rei - avatar
+ 2
if you are running it on your computer you should write C: not just C also use either two backsplasges \\ or a single slash / to separate the path
17th Mar 2018, 12:49 PM
Jeremy
Jeremy - avatar