Modifing currOffset outside file access