public void openFile() throws IOException {
  if (file == null) {
    file=FileUtils.open(name,mode);
    file.position(filePos);
  }
}

public void openFile ( ) throws IOException { if ( file == null ) { file = FileUtils . open ( name , mode ) ; file . position ( filePos ) ; } }
re - open the file . the file pointer will be reset to the previous location .
