Thanks for the help.
Another question: Is there a way to read things betwen "{ }"'s? The only way I can think of doing this is to write everything within the "{ }"'s into a text file and use a while loop to loop everything within that text file. It's slow, but I couln't figure out another way to do it.
example:
for blah blah {
do this
do that
and this too
cant forget this
}