|
There are many problems with your code:
1) You don't need nested loops for what you're trying to achieve.
2) Use separate variables for inner loops if you do intend to work with nested loops(in other programs).
3) You're looping for only 20 characters, loop until an EOF character is encountered or you are unable to read from the file.
4) Please pay attention to what others are saying.
5) First make a design for what are you trying to achieve, only then proceed to coding. Looks like you've just copied & pasted the loops.
__________________
PFO - My daily dose of technology.
|