Or could I use the code.txt as suggested by
Huitznahua in the folder of the mod I am trying to overwrite the male character for?
If I'm understanding your question, then yeah, that's all you have to do - add a file called Code.txt and paste the part of the code you want into it. These are the parts of a character code that edit the male body:
hisBody, hisPenis, balls, hisSkin, hisBreasts (dependent), hisTop, hisBottoms, hisFootwear
You can add a Code.txt file that only has those parts of the code, and everything will load in correctly.
In my experience, there are two caveats, though:
1. Lots of SWF mods load in their own character codes, so they'll overwrite a character you're already using. That can mean that if you set up a folder with a certain code and a certain mod, the mod will overwrite the code you wanted every time you load the folder. You can work around that by using nested folders (
Gyazo - e467ae0cecfac7cde61b145f94b20bf7.png), and loading the folder with the SWFs first and the code/hair second.
(There's also a mod for this, StopSWFCode, but I've never gotten it to work right.)
2. Loading a character code from a mod folder seems to make the game assume that some of the fields you didn't enter code for should just be the defaults. I tried making a Code.txt once that just clears each clothing field, but for some reason, it also resets the girl's body type when I load it. Copy/pasting codes into the "load character" box in the client doesn't seem to do this, though.
(Oh, and as for editing the mod itself, that's the most complicated way you could possibly solve the problem. SWF files are finished products, and you need a special program just to decompile them into editable FLA files. So, uh, maybe don't bother with that one.)