Hi, just wondering the best approach to making a class that reads dialog from a text file but only certain parts
ie. 3rd line and 5th word in the line
I’m not sure if its even possible
any help would be appreciated.
You can use the .NET library’s StringReader class to read a string line by line as if it were a text file. Having got a line, you can use String.Split to break the string into an array of words (using space as the splitting character). It is then just a matter of choosing the appropriate word from the array.
Thank you, I will try it out.