Consolidating file header into structure