But if you want to add a .txt file to it, maybe mount the .dmg first and see, if you can add the .txt file to the mounted image, but chances are high, that this .dmg is read-only. Maybe you can create a similar sized disk image via Disk Utility with read and write capability and copy the contents of the one .dmg to the other and then add the .txt file to it and then burn it.