Apri il file .dat con file() o con file_get_contents(), ne leggi il contenuto e crei la tabella.