• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I read RAF backward?

 
Md Ahsan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to read RAF file backward? or move pointer backward 1 record from pointer returned from raf.getFilePointer()?
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not? Just use the seek method.

And please, next time make it a bit more clear that you're talking about RandomAccessFile. Not everybody knows that RAF is RandomAccessFile, or NPE is NullPointerException.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!