VBGamer |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
String Splitting David Goodlad (6 replies, 0 views) (2000-May-9) Hey everyone...
It's been quite awhile since I've done file manipulation/string manipulation in VB (php is great, way better way to read in streams etc hehe)... I'm writing a scripting language article for my website which is coming along quite nicely, but I've run into a little snag.
I have plain-text files as the scripts (don't ask why...), and need to be able to read from it say, until a '(' is encountered. Then I need to be able to dump whatever was read just prior to this into a variable. I was going to try and use the 'Line Input' statement to grab a single line into a string then try to split it up that way, but have not been successful in figuring out a way to do it without a very convoluted set of 'Left$' and 'Right$' statements...
Can anyone offer any suggestions?
Thanks!
David
|