Add basic header/file header read/write functions