Page 1 of 1

Capturing terminal output to a file

Posted: Fri Apr 06, 2012 12:02 pm
by ted
Terminal output can be captured to a file with the hoc_stdout() procedure. Example:

Code: Select all

{hoc_stdout("temp")}
forall psection()
{hoc_stdout()}
For documentation of hoc_stdout() see http://www.neuron.yale.edu/neuron/stati ... #hoc_stdio