Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Carlos E. R. via Lazarus
On 2018-05-04 19:30, Marco van de Voort via Lazarus wrote: > On Fri, May 04, 2018 at 01:31:50PM +0200, Carlos E. R. via Lazarus wrote: >> Now I have to figure out how to write both to file and screen :-) > > fpc streamio > Results in church related links, LOL. Better "freepascal streamio".

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Carlos E. R. via Lazarus
On 2018-05-04 18:46, Reimar Grabowski via Lazarus wrote: > On Fri, 4 May 2018 13:34:54 +0200 > "Carlos E. R. via Lazarus" wrote: > >> Yes, of course, that's what I'm doing now, but I wanted to do it >> internally, control the file name, perhaps rotate it, etc :-) >

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Marco van de Voort via Lazarus
On Fri, May 04, 2018 at 01:31:50PM +0200, Carlos E. R. via Lazarus wrote: > Now I have to figure out how to write both to file and screen :-) fpc streamio -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Reimar Grabowski via Lazarus
On Fri, 4 May 2018 13:34:54 +0200 "Carlos E. R. via Lazarus" wrote: > Yes, of course, that's what I'm doing now, but I wanted to do it > internally, control the file name, perhaps rotate it, etc :-) Perhaps you should use a logger. There are surely some FPC ones

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Carlos E. R. via Lazarus
On 2018-05-04 13:30, Bart via Lazarus wrote: > On Fri, May 4, 2018 at 12:51 PM, Carlos E. R. via Lazarus > 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

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Carlos E. R. via Lazarus
On 2018-05-04 12:58, Mattias Gaertner via Lazarus wrote: > On Fri, 4 May 2018 12:51:38 +0200 > "Carlos E. R. via Lazarus" 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

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Bart via Lazarus
On Fri, May 4, 2018 at 12:51 PM, Carlos E. R. via Lazarus 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

Re: [Lazarus] Cloning standard output to text file

2018-05-04 Thread Mattias Gaertner via Lazarus
On Fri, 4 May 2018 12:51:38 +0200 "Carlos E. R. via Lazarus" 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

[Lazarus] Cloning standard output to text file

2018-05-04 Thread Carlos E. R. via Lazarus
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