You can either redirect the output, using
oxl file.ox > file.out.
I find this most convenient.
It is also possible to generate a log file of all the output from within
the Ox program using
fopen("put_it_some_where/output_name.log", "l");
This can be the first command in main, e.g.
Jurgen.
[log in to unmask] wrote:
> That's an interesting problem. I think it would be useful if Ox had a
> switch that would allow specifying and output file, or would allow
> manipulating file descriptors
> (e. g.
> filehandle_output = fopen("output.txt");
> setstdout( filehandle_output );
> setstderr( filehandle_output );
> )
>
> "stdout = fopen("ouput.txt");").
>
> At the moment, you can use output redirection if you are running Ox
> under Unix ( oxl myprogram.ox &> output.txt ), or explicitly print to a
> file (fprint()). I guess you could hack together some C module to
> implement the functions setstdout as described above.
>
> To my knowledge, these are the only options. Maybe someone else wants to
> comment on this?
>
> On Thu, 2004-09-30 at 10:09, Mikael PETITJEAN wrote:
>
>>Dear Ox-players,
>>
>>I am trying to automatically save (using some code lines) the contents (i.e.
>>the text) of the ox ouput window into a .txt file. Guess what? I cannot.
>>
>>Any bright idea (or not so bright) most welcome!
>>
>>Many thanks.
>>
>>Mikael Petitjean
>>CIM-ICM Reasearch Fellow
>>CeReFiM, FUNDP, University of Namur
>>Belgium
>>
>
>
--
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
oxoxoxox 2nd OxMetrics user conference 26-27 August 2004
oxoxoxox Cass Business School, London
oxoxoxox www.cass.city.ac.uk/conferences/oxmetrics2004/
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
Dr Jurgen A Doornik
Nuffield College, Oxford OX1 1NF, UK
tel. UK: +44-1865-278610 fax +44-1865-278621
http://www.nuff.ox.ac.uk/Users/Doornik/
http://www.oxmetrics.net
http://www.oxedit.com
oxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxoxox
|