How can I create a file

Hi Friends,

I have one query which is returning a string value. So how can I append this string into a new file?

The query is like this,
stringvalues =`echo "set isolation to dirty read; select \"ZZZ\", \
account_id,date \
from accounts where account_id in ('1212',1213')\
" | $ISQL -s "mydb" 2>&1 | grep ZZZ | cut -c12-`

So how can I add this stringvalues to a file..??

Can anybody help me?

Thanks in advance..!

Simple (appending) redirection, shell scripting 101.

echo $var >> file