Hi,
you can achieve this with mark() and reset() methods of BufferedReader. In mark(readAheadLimit) you should define the maximal amount of bytes which you want to "jump". Not every stream support this feature, so you have to check it first with markSupported() method.
Best regards,
Martin
thanks =-)
Could this be another possible solution?
If I create another BufferedReader instance and call readline() method on the same file which contains those lines of record, does the reader automatically go back to the beginning of the first line?
(the readAheadLimit for my program would always change if I use mark(int) and reset()..therefore, i am looking for a possible alternative solution).