Mysterious EOF exception while reading a file with Java IO functions
<p>I got following exception when I am trying to seek to some file. </p>

<blockquote>
  <p>>
  Error while seeking to 38128 in myFile, File length: 85742
  java.io.EOFException
      at java.io.RandomAccessFile.readInt(RandomAccessFile.java:725)
      at java.io.RandomAccessFile.readLong(RandomAccessFile.java:758)
  ></p>
</blockquote>

<p>But If you see I am trying to seek to '38128' where as file length is '85742'. It reported EOF exception. I wonder how it is possible? Another process appends contents to that file periodically and closes the file handler. It appends contents using DataOutputStream. My process is trying to seek to some locations and reading it. One more thing is I got this exception only once. I tried to reproduce it but it never happened again. The file is in local disk only. No filer.</p>

<p>Thanks
D. L. Kumar</p>
