View Single Post
Old Dec 28th, 2005, 5:43 AM   #7
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
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.
InfoGeek is offline   Reply With Quote