Updates file header.