Right, a bit of an odd request, but you’re the cleverest, mosty computer literate people I know, so here I am 
I do some modding work on a game, (Rome: Total War) changing skins and altering models etc. there are loads of .txt files that all the info for the units is stored in. What I was wondering was if there was a way to make some kind of app or batch file that could take the information I want out of them and save it as a new .txt file. I want a list, to help me, that list’s each unit’s true name, skin name and model name. Every unit has this information stored across 3 different files:
export_descr_unit.txt
descr_model_battle.txt
and Text/export_units.txt
An Example (roman legionary)
(; is a comment)
export_descr_unit.txt
**
[font=Lucida Console]type roman legionary cohort ii
dictionary [color=DarkOrange]roman_legionary_cohort_ii[/color] ; Legionary Cohort
category infantry
class heavy
voice_type Medium_1
soldier [color=SeaGreen]roman_legionary_cohort_ii[/color], 40, 0, 1.3
officer roman_standard
attributes sea_faring, hide_forest, can_sap, hardy
formation 1, 2, 2, 3, 4, square, testudo
stat_health 1, 0
stat_pri 13, 4, pilum, 35, 2, thrown, blade, piercing, spear, 25 ,1
stat_pri_attr prec, thrown ap
stat_sec 9, 4, no, 0, 0, melee, simple, piercing, sword, 25 ,1
stat_sec_attr no
stat_pri_armour 12, 5, 5, metal
stat_sec_armour 0, 1, flesh
stat_heat 5
stat_ground 2, 0, 0, 0
stat_mental 10, disciplined, highly_trained
stat_charge_dist 30
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 740, 210, 80, 120, 740
ownership romans julii,romans brutii,romans scipii,romans senate[/font]
descr_model_battle.txt
**
type [color=SeaGreen]roman_legionary_cohort_ii[/color]
skeleton fs_javelinman, fs_swordsman2 ; throwing javelin
indiv_range 40
texture romans_julii, data/models_unit/textures/[color=Magenta]unit_roman_legionary_II_julii.tga[/color]
texture romans_brutii, data/models_unit/textures/[color=Magenta]unit_roman_legionary_II_brutii.tga[/color]
texture romans_scipii, data/models_unit/textures/[color=Magenta]unit_roman_legionary_II_scipii.tga[/color]
texture romans_senate, data/models_unit/textures/[color=Magenta]unit_roman_legionary_II_senate.tga[/color]
texture seleucid, data/models_unit/textures/unit_greek_legionary_seleucid.tga
model_flexi_m data/models_unit/[color=DeepSkyBlue]unit_roman_legionary_high.cas[/color], 15
model_flexi_m data/models_unit/[color=DeepSkyBlue]unit_roman_legionary_med.cas[/color], 30
model_flexi_m data/models_unit/[color=DeepSkyBlue]unit_roman_legionary_low.cas[/color], 40
model_flexi data/models_unit/[color=DeepSkyBlue]unit_roman_legionary_lowest.cas[/color], max
model_sprite seleucid, 60.0, data/sprites/seleucid_roman_legionary_cohort_ii_sprite.spr
model_sprite romans_senate, 60.0, data/sprites/romans_senate_roman_legionary_cohort_ii_sprite.spr
model_sprite romans_scipii, 60.0, data/sprites/romans_scipii_roman_legionary_cohort_ii_sprite.spr
model_sprite romans_brutii, 60.0, data/sprites/romans_brutii_roman_legionary_cohort_ii_sprite.spr
model_sprite romans_julii, 60.0, data/sprites/romans_julii_roman_legionary_cohort_ii_sprite.spr
model_tri 400, 0.5f, 0.5f, 0.5f
** Text/export_units.txt
**{[color=DarkOrange]roman_legionary_cohort_ii[/color]} [color=Blue]Legionary Cohort[/color]
[color=Blue]Real Name[/color]
[color=Magenta]Skin Name
[color=DeepSkyBlue]Model Name
[color=Black]
How can I get those 3 bits of info out and into a new text file? For example:
**New_Txt_File.txt
**
Name: [color=Blue]Legionary Cohort
[color=Black]Skin:[/color] [/color][/color][/color][/color][color=Magenta]unit_roman_legionary_II_julii.tga
[color=Black]Skin: [/color][/color][color=Magenta]unit_roman_legionary_II_brutii.tga
[color=Black]Skin:[/color] [/color][color=Magenta]unit_roman_legionary_II_scipii.tga
[color=Black]Skin:[/color] [/color][color=Magenta]unit_roman_legionary_II_senate.tga
[color=Black]Model: [/color][/color][color=DeepSkyBlue]unit_roman_legionary_high.cas
[/color][color=Magenta][color=Black]Model: [/color][/color][color=DeepSkyBlue]unit_roman_legionary_med.cas[/color]
[color=Magenta][color=Black]Model: [/color][/color][color=DeepSkyBlue]unit_roman_legionary_low.cas[/color]
[color=Magenta][color=Black]Model: [/color][/color][color=DeepSkyBlue]unit_roman_legionary_lowest.cas
[color=Black]Is it doable? How would I even start thinking about this?[/color]
[/color]