open (FILE, "< i:\\lenova_2008-03-28.zip"); open (OUT, "> i:\\fullhexdump.txt"); binmode(FILE); $count=0; while () { $count++; read(FILE, $buf, 1); $byte = unpack "H*", $buf; print "$byte"; print OUT "$byte "; } close FILE; close OUT; print "\n\n$count\n\n";