https://cosect.net/how-to-open-and-read-dat-files/