Carlos E. R. via Lazarus
2018-05-04 10:51:38 UTC
Hi,
I know I did this decades ago with Turbo Pascal, but I can't remember
how, and my google foo fails me.
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 can of course do two writeln calls for each current call, but it is a
nuisance.
I can not use a mywriteln wrapper that would do the two calls, because I
do not know how to create a procedure that takes a variant number of
parameters, as "writeln()" does...
Ideas?
If you know of a google search string to locate these ideas, just tell
me ;-)
I know I did this decades ago with Turbo Pascal, but I can't remember
how, and my google foo fails me.
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 can of course do two writeln calls for each current call, but it is a
nuisance.
I can not use a mywriteln wrapper that would do the two calls, because I
do not know how to create a procedure that takes a variant number of
parameters, as "writeln()" does...
Ideas?
If you know of a google search string to locate these ideas, just tell
me ;-)
--
Cheers / Saludos,
Carlos E. R.
(from 42.3 x86_64 "Malachite" at Telcontar)
Cheers / Saludos,
Carlos E. R.
(from 42.3 x86_64 "Malachite" at Telcontar)