Basic info: I have a DAT file from Age of Empires 2 Conquerer, the expansion pack (Forgotten Empires).
Question: I want to be able to read the contents of it. I tried using FileReader method and FileInputStream - ObjectInputStream. The first one gives me a weird output "ì½|÷óÿ—..." and the other one gives me this error: java.io.StreamCorruptedException: invalid stream header: ECBD057C Afaik, every DAT file is different and one needs to know how it was made. I am noob at programming, so please excuse me if I haven't provided enough info.
More Details: Link to the file - http://www.4shared.com/file/6SkPpm6r/empires2_x1_p1.html There are tools to read this file and edit it, however, I want to read it in a simple java program and extract what's inside of it. Tool to read it: http://aok.heavengames.com/blacksmith/showfile.php?fileid=11002
Thanks a lot!