Convert a .dat file to a root file

This seems to be a duplicate of a previous post.