public void writeOffset(long offset) throws IOException {
  dataOutputStream.writeLong(offset);
}

public void writeOffset ( long offset ) throws IOException { dataOutputStream . writeLong ( offset ) ; }
write the offset to the file
