I have a req where from a file, I have to read, process and write first 3 records and skip the next three, then read first 3 and skip the next three and so on. Plz give your inputs on how this can be done. thanks.
Have a counter and a flag. After reading every three records, toggle the flag. Process the record or not depending on how the flag is set.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day