Dear Ox-users,
There is a possibility to save all output in a file. The command
fid = fopen("output.log","l");
opens the file output.log and sends all printed output to the file.
Unfortunately, error messages are not saved in the file. So, if your
program crashes due to a runtime error the error message will not be in
your file. Maybe someone else knows how to get Ox to also send errors
and warnings to a file?
Regards,
Dennis Fok
--
D. Fok
Econometric Institute
Erasmus University Rotterdam
[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
>>
|