code read file .dat