>>>>Just can't remember how to do this. Set printer? Can't find the right clauses to work though.
>>>>
>>>>
>>>>? "Send this to the 1st line of a file."
>>>>? "Send this to the 2nd line of a file."
>>>>
>>>
>>>I didn't try, but AFAIK this would also work
>>>
>>>??? "First line"
>>>??? "second line"
>>
>>Is that to a file or to the printer?
>
>To the printer. ??? sends a string to the printer. That's why an easy way to print a text file is to use
>
>??? filetostr('myFile.txt')
>
>for your original question you may also check SET DEVICE and SET ALTERNATE commands in Help.
And just for Jay's information, the differences between these:
Set Device redirects the output from @say statements
Set Alternate redirects whatever is sent to the console - not only by ? ?? commands, but also any List, Display etc (which is pretty much the same as Set Print does). It will also add an EOF (chr(26), 0h1A) character to the end of file when it's closed (set alternate to ). The resulting text file may not be readable beyond that point by some software - some guys out there still take the eof marker seriously.