I Can't open a file, What's wrong

Thread Starter

asdf arfw

Joined Sep 9, 2017
43
the file has been created already. But it can't open what's wrong?


upload_2017-10-24_15-4-38.png

Nevermind I found the mistake right now
 
Last edited:

WBahn

Joined Mar 31, 2012
30,058
I didn't even spot it -- the resolution is poor enough that I could probably blame that, but it's more likely I just didn't see it because I assumed it wasn't there. Probably would have seen it when I looked closer at the code if you were still having problems. Glad you found the problem and thanks for letting us know what it was.
 

WBahn

Joined Mar 31, 2012
30,058
Oh, BTW logic errors like this are very easy to make and very easy to overlook once made. Many compilers will give warnings when you make the more common logic errors like this. Did your compiler throw any warnings?

There are also lint checkers (a program that examines the code specifically for logic/format irregularities) that are very good at pointing out these kinds of mistakes. You might check into one of them.
 
Top