0

I want to read a specific line in a text file without sequentially going over each line and maintaining a line-counter or something.

Basically I want to know if there is any Class from core library that will give Random-Access to any line in a text file.

Gopakumar N G
  • 1,775
  • 1
  • 23
  • 40
VishalDevgire
  • 4,232
  • 10
  • 33
  • 59
  • 1
    MAy be you could check it out here [link]http://stackoverflow.com/questions/2312756/in-java-how-to-read-from-a-file-a-specific-line-given-the-line-number –  Jul 04 '13 at 06:45

1 Answers1

0

There is no standard functionality that implements your requirements. But you might want to have a look at:

http://docs.oracle.com/javase/tutorial/essential/io/rafs.html

... for an alternative approach.

APinto
  • 76
  • 7