Is there anyway to create a file using a variable?
Suppose I have a variable called sub and I want to save text to a file named sub.txt where sub is a number from 1 to 100.
Normally, I would write
open file "sub.txt"
put results & cr into file "sub.txt" at eof
close file "sub.txt"
How can I change the filename based on the current value of sub?
Thanks!