Answer#1: Look at the assignment. Of course, you must open file before use (read or/and write) it. There are two files in your assignment...
Answer#2 - counter-question: where is that while loop? No loop - no condition...
Apropos (about the original post): in my opinion, no ideas - no problems...
Reputation Points: 1234
Solved Threads: 347
Postaholic
Offline 2,001 posts
since Jul 2008