• Post Reply Bookmark Topic Watch Topic
  • New Topic

Read file

 
divya madala
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to read a file from bottom to top and stop when it finds an empty line?
Please help.
Thanks,
Divya
 
Saj
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Divya,
Y u want 2 read the file from last 2 first?.
If that is a must, check out the class RandomAccessFile, use the methods provided there, such as seek() 2 navigate 2 the end of the file & read backward using ur own logic.
Saj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!