Kain Nobel
Member
There's just a couple simple things I need to know how to do, this has to do with manipulating filename strings...
Okay, my script currently calls for mission information written on a .txt, the directories are set up like this...
I want to be able to name the folder and .txt like so...
Category[1]-Name of the Category/
Mission[1]-Name of the Mission.txt
Only problem is then the script won't be able to find it with the name appended to the filename, how would I get it to automatically match and open the filepath reguardless of if they've got the 'name' appended to 'em or not?
Okay, my script currently calls for mission information written on a .txt, the directories are set up like this...
Code:
# Category 1, Mission 1
Data/Missions/Category[1]/Mission[1].txt
I want to be able to name the folder and .txt like so...
Category[1]-Name of the Category/
Mission[1]-Name of the Mission.txt
Only problem is then the script won't be able to find it with the name appended to the filename, how would I get it to automatically match and open the filepath reguardless of if they've got the 'name' appended to 'em or not?