Thanks for input Wilfried.
I thought that setLineNumber() will help to solve my problem. But it is not. Might be my
understanding is wrong.
I wrote a simple
test method with the following line of code
File oFile= new File("src.txt");
LineNumberReader oLineNoReader = new LineNumberReader(new FileReader(oFile));
oLineNoReader .setLineNumber(3);
System.out.println( "content of 3rd line : " + oLineNoReader.readLine() );
Assume src.txt content is as follows
line 1
line 2
line 3
line 4
...
...
I WANT THE OUTPUT AS FOLLOWS
content of 3rd line : line 3
BUT STILL I AM GETTING OUT PUT AS
content of 3rd line : line 1
Any suggestion please.
Thanks again.
Arun