Read double from .dat file, working copy