Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

binary files - differences in lengths - please help

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,
I guess somebody must have encountered this problem. Iam making two successive calls to the getFilePointer()
and getLength() methods before closing a random access file. Iam getting two different numbers for these calls.
getFilePointer returns - 1622
getLength returns - 1620
How can the length be less than the current offset?
 
Ben Nichols
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not a problem you should be experiencing.
If it is a problem that you are experiencing with your Fly By Night assignment, then your assignment differs from mine, or you have gone way too deep.
Ben
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!