-
Changing strings
Ok this is extremely hard to pu into words but i will try my best.
My application reads the contents of a directory and lists all the folders in that directory in a list object. (with me so far?) I have a seperate text file within my applications directory which holds information about the previously mentioned folders. Each directory name contains a 9 character string which is used to identify it. What i want to do is replace that 9 character is with something slightly more meaningful.
Example time
List Object on frame displays the following:
[ULES00675]
[ULES00677]
[ULUS00998]
[ULUS44563]
[ULUS45663]
The external text file contains the following info:
ULES00675, Folder 1
ULES00677, Folder 2
ULUS00998, Folder 3
ULUS44563, Folder 4
ULUS45663, Folder 5
The first part of the text file denotes the folder ID whilst the second denotes the Name.
I cannot edit the folder names due to the naming convention in place nor can the information included in the text file be built into the application as this file will be constantly updated.
At the moment the file is stored as a .txt file but i am more than willing to convert it to another format if needs be.
BTW all these changes have to be made at the start of the frame.
-
Re: Changing strings
Perhaps an Ini?
[SomeGroup]
ULUS00998 = Folder 1
etc.
-
Re: Changing strings
I managed to get half way there through the use of ini files and text files. i'm sure there is an easier way through the use of the text file alone maybe?? but for now i'm sticking with it!!