0

Why do I get an error?

I get an error saying it has to compile in an unusual way. I've narrowed it down to the error being in the exception, but why? https://code.sololearn.com/c5Yi3n72bxH9/?ref=app

9th May 2018, 2:57 PM
fallOut015
fallOut015 - avatar
4 Answers
+ 2
You're not going to write to a file in SoloLearn. Try it in Visual Studio and it will probably work. SoloLearn doesn't compile code in the app. Your code is sent to a server, compiled, then the results are printed in the app.
9th May 2018, 3:20 PM
Bagshot
Bagshot - avatar
+ 1
It's looking for a text file. Not sure if that's the problem, but trying to load a file in SoloLearn probably isn't going to work.
9th May 2018, 3:12 PM
Bagshot
Bagshot - avatar
0
Bagshot doesn't it create the file if it doesn't already exist? or is that just the .open() function
9th May 2018, 3:16 PM
fallOut015
fallOut015 - avatar
0
Ace I'm not an home right now, but, according to what you just said, it probably would
9th May 2018, 3:19 PM
fallOut015
fallOut015 - avatar