This check shall be in a seperate module call validation for dat file.. It is easier to test that file alone.