Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I read RAF backward?  RSS feed

 
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: 21092
85
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!