extractID function

Extract ID from file header object