Yes. You can put:
notify-output out.txt
to write all Panda output to out.txt. It’s also possible to do this on a one-at-a-time basis at runtime with some careful low-level calls into Notify.
There are lots of ways to achieve this. The StringStream approach is just one quick-and-dirty answer.
Here’s an approach that doesn’t require saving the entire output in RAM (the output is directly written to the named file). Especially important if the output might be very large:
Thanks. I have a request, for the manual. Is that if someone could add a chapter summarizing all about Panda input/output classes and related stuff like filenames, zip archives, net i/o, and notifications.