First code to read the header and fileinfo table