[Lazarus] Cloning standard output to text file
Bart
bartjunk64 at gmail.com
Fri May 4 13:30:10 CEST 2018
On Fri, May 4, 2018 at 12:51 PM, Carlos E. R. via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> I want to do a series of "writeln(...)" and have the output go
> simultaneously to the console and to a text file of my choice. I have
> the vague idea that this was done writing a text file handler :-?
I once wrote a simple utility (myutil) that read from stdin, echoed to
stdout and echoed to a logfile.
I then used a pipe from the commandline to achieve what I wanted.
E.g.:
myprog | mytuil path/to/log
Or something similar to that.
Bart
More information about the Lazarus
mailing list