These headers are detected by checksumming the first 67 bytes of the record. If the checksum is as expected then a header is present, if not then there is no header.
To calculate the checksumWhen a file without a header is opened for input a fake header is constructed in store as follows: {| class="wikitable"|-! Field !! Bytes !! Name !! Notes|-| rowspan="10" | System || 0 || User number || User number, just add all bytes from #00 up ..#FF|-| 1..8 || Filename || Unused characters are filled with space|-| 9..11 || Extension || Unused characters are filled with space|-| 12..15 || Zero || Contains all zeroes|-| 18 || File type || #16, unprotected ASCCI version 1|-| 19..20 || Data location || Address of 2K buffer|-| 23 || First block || Set to #FF|} All other fields are set to and including byte 66 togetherzero.
This is only a summary. All details are in [[Firmware Guide]] chapter 9, page 4.