in reply to problem opening and reading from a file
print OUT "foo,bar,totally foobar\n" [download]
print OUT "foo,bar,totally foobar\n"; [download]