Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EndOfFile

 
Marcel Svacina
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

Please, I have one question about determine End Of File, when I am using RandomAccessFile. Here is my code

while (raf.read() != -1) {
raf.seek(raf.getFilePointer() - 1);

I do not thing, that this way is the best one, can you tell me about better one?

Thanks

P.S.: Sorry for my English :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic