Hi, I was wondering how to skip every two numbers read from a file?
For example I have a list of integer values (from a text file) say,
100 90 80 78 67 56 20 78 99 54 89 100 90 80
and I wanted to print
100 78 20 54 90 on the screen which means skipping two numbers
Thankyou for helping. Just one more question. If I wanted to read the file again from the beginning do I just close it and open again or is there another/better way?