Hi all,
My question pertains to the reading of a text document. Currently I am reading a text file searching for certain syntax and once it finds it then it uses that line. The thing is, I am currently doing this:
while (reader.readLine() != null) {
DOSTUFF();
}
This is nice and it works well, but it's somewhat sluggish because on every text file it needs to go through 871 lines first before it will find the correct syntax line.
I was wondering if there is a way to SKIP reading through each line and go directly to line 872? IE instead of reading 1 line at a time and searching for the syntax, it will just reader.goToAndRead(872);.... this would save me an enormous amount of time in my application.
Thank you for any help you offer!