how do you read file headers? Please include partial sample code as an example.