[add] Added openNextFile method.