How to edit the campaign save file?

I accidentally tinkered with some of the code in the campaign quest file and the campaign is going nuts right now. Can anyone tell me how to edit / how to open the campaign DAT file? I tried with notepad but it doesn't work. 
