Header of .dat files

How do I see the header of .dat files?