DAT file is a file format written to save sounds, midi, wave, pallets, images, and levels. In short, this file format contains vital information for specific software, and the data is usually in either binary or plain text. In rare cases, DAT files may include a video file. DAT files are opened using text editors like Notepad++ and TextEdit.
SWF (Small Web Format/ShockWave Format) is a digital Adobe flash file format that stores vector-based animations, audios, and videos. Generally, it is used to stream media online, mostly browser-based games. Sadly, Adobe recently announced that they are ending Flash format support by the end of 2020 due to its shortcomings such as performance issues and lack of security.
Adobe Flash Player Adobe Flash Professional CC GOM Player Adobe Dreamweaver 2020