Is there a way to loop through each character in a text file (ini) and then say when a character "/" is found, stop the loop or do some other action? Is there a better option than ini?
Say I had a text file like this:
I have a red hat.* Actually it is blue.
Then I wanted to loop through that until I reached the "*" character, then display that sentence as static text or in an edit box etc.
So the text in the game would just say "I have a red hat." because everything after the "*" wouldn't be looped through.
Thanks in advance
Please ask for more info about my question if this is not enough!
Thanks sketchy . Is it possible to have multiple delimeters? Like if I wanted to check if the character was a * or a ] etc? Would it be better to use more than one string parser?