line 52 else (filename != "Lab2part2.txt");
<- remove the semicolon here
EDIT:
If I do that, I get a compiler error message.
58 Expected ';' before '{'
Last edited on
ah, one more thing.
If you keep the condition, it needs to be else if
.
else if (filename != "Lab2part2.txt")
or it can just be else without the condition, since if it fails the if part, it has to be not equal to that specific file name.
else
Okay, I removed the condition and it worked!