blinko2008 Posted May 16, 2009 Posted May 16, 2009 Hello Everyone, I've recently been trying to parse through a text file and return values that are in between " " for example. I have a script file that i need to return all the command values for. { 1 pensize 255 0 0 pencolor "" CHATSTR = MOUSEPOS y = x = { { pt tp = 14 mg = { 3 mg * 2 / mg = 2 tp /= } { tp 2 % not tp AND } while x pt 360 * 64 / sine mg * 1000 / + y pt 360 * 64 / cosine mg * 1000 / + } twop = twop EXEC pt ++ twop EXEC LINE } { pt 65 < } WHILE } CHATSTR "compass" == IF where "compass" would be the command minus the " " around it. I need to Open the Script File, scan through for anything inside the " " quotations and have it return an Array of command strings that can then be written to a separate .txt file. any ideas? everything i've tried is just not working for me, and Search didn't help any =\ Many Thanks !
Richard Robertson Posted May 16, 2009 Posted May 16, 2009 _StringBetween, the UDF will work perfectly for you.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now