Please imagine a simple loop:
For[i=1,i<=100,i++, Print[i]; ];
We can ask
Print to output $(1,2,3,4,...)$ to a different notebook (in the context of the same kernel)?
As Yves already mentioned, you can easily create and edit notebooks through Mathematica commands. A start would be this tutorial, which you can find in the Documentation Center under
Here is a short example printing the
If you want to know how to construct cell expressions, you could just go over any cell in a notebook and hit Ctrl+Shift+E to see the underlying structure.
Although the question has been answered, no reason for this question was given. One possible motivation is to be able to discard a lot of diagnostic output, e.g. from an iterative process, by trashing the newly created notebook.
In such a case an alternative could be Dynamic[.], e.g.