here my bathces are based on l2asm, i hope they are fool proofed.
with that you can encode dat->txt and vice versa as you want
original dat files in org folder, run the batch and txt files are in disasm, edit run the encode batch and new dat files are in asm.