Not quite clear what <quotename> is in your application, but try something
along the lines of:

write to-file join <quotename> ".data" stuff-to-write

where <quotename> is a string, and stuff-to-write is your data. 

Russ

PS: broken out perhaps more clearly, this example:

var: "test"
filename: to-file join var ".data"
write filename stuff-to-write

============
At 03:16 PM 12/9/1999 +0100, you wrote:
>
>Hello,
>
>I'm writing a script to automaticaly get historical quote from Yahoo
Finance, and
>I would like to save the quote in a file with name: <quotename>.data.
>
>How can I use the "write" command  to give a variable as a filename ?
>
>In shell script, I would have written :
>for i in SGI MSFT AAPL
>do
>    get $i  > $i.data
>done
>
>
>thanks
>
>laurent
>
>
>
>
>

Reply via email to