Much like OldMoses, but more generic and standard, I simply do this:
OPEN "c:\temp\[NameOfFile].txt" FOR OUTPUT AS #1
It's a two-step process, but it allows you to print from whatever word processor, text editor, whatever, or you can send it as an attachment to an email, and you can filter out stuff you don't need printed, at the last minute, before going to the printer.
I always go to my temp directory (which I clean out periodically), but of course, you can send that text file wherever you want.
Oh, I forgot to specify what the PRINT commands look like. Where you write PRINT, to show the output on the screen, you write PRINT #1, to write to the text file, as this shows:
PRINT "IPv4 address in binary: "; BinByte$(1); " "; BinByte$(2); " "; BinByte$(3); " "; BinByte$(4)
PRINT #1, "IPv4 address in binary: "; BinByte$(1); " "; BinByte$(2); " "; BinByte$(3); " "; BinByte$(4)
If you want the text file to be exactly the same as what you see on the screen, it's as simple as copy and paste, adding that "#1," after PRINT.