if you open this file in a hex editor, i am dealing with binary and plain text. $filename comes from plain text.
$filelocation and $filesize comes from binary in the hex editor. 0x00, read 8 bytes = $filelocation, read 8 more bytes, $filesize, read 32 more bytes, $filename. repeat from current position. and thank you for the pointers :)