Re: Writing to two files at once

2015-05-21 Thread wobbles via Digitalmars-d-learn
On Thursday, 21 May 2015 at 21:02:42 UTC, Ali Çehreli wrote: On 05/21/2015 01:56 PM, wobbles wrote: What I ended up doing was creating an OutputRange that contains the files I want to write to. On OutputRange.put I simply print to print to all the files. Just like MultiFile example here: :)

Re: Writing to two files at once

2015-05-21 Thread Cassio Butrico via Digitalmars-d-learn
On Thursday, 21 May 2015 at 21:16:59 UTC, wobbles wrote: On Thursday, 21 May 2015 at 21:00:15 UTC, Cassio Butrico wrote: If I understand right you want to redirect the output to a file by a flag , another file type , video printer is it? I think by video printer you mean the console? If so,

Re: Writing to two files at once

2015-05-21 Thread John Colvin via Digitalmars-d-learn
On Thursday, 21 May 2015 at 20:15:29 UTC, wobbles wrote: On Thursday, 21 May 2015 at 20:06:08 UTC, wobbles wrote: I would like to write to two files at once. If user specifies verbose flag, output should write to both stdout and the programs standard output file. Any ideas? I should add,

Re: Writing to two files at once

2015-05-21 Thread wobbles via Digitalmars-d-learn
On Thursday, 21 May 2015 at 20:15:29 UTC, wobbles wrote: On Thursday, 21 May 2015 at 20:06:08 UTC, wobbles wrote: I would like to write to two files at once. If user specifies verbose flag, output should write to both stdout and the programs standard output file. Any ideas? I should add,

Re: Writing to two files at once

2015-05-21 Thread Cassio Butrico via Digitalmars-d-learn
If I understand right you want to redirect the output to a file by a flag , another file type , video printer is it?

Re: Writing to two files at once

2015-05-21 Thread Ali Çehreli via Digitalmars-d-learn
On 05/21/2015 01:56 PM, wobbles wrote: What I ended up doing was creating an OutputRange that contains the files I want to write to. On OutputRange.put I simply print to print to all the files. Just like MultiFile example here: :)

Re: Writing to two files at once

2015-05-21 Thread wobbles via Digitalmars-d-learn
On Thursday, 21 May 2015 at 21:00:15 UTC, Cassio Butrico wrote: If I understand right you want to redirect the output to a file by a flag , another file type , video printer is it? I think by video printer you mean the console? If so, yes. I believe I've solved it anyway, see Ali and my

Writing to two files at once

2015-05-21 Thread wobbles via Digitalmars-d-learn
I would like to write to two files at once. If user specifies verbose flag, output should write to both stdout and the programs standard output file. Any ideas?

Re: Writing to two files at once

2015-05-21 Thread wobbles via Digitalmars-d-learn
On Thursday, 21 May 2015 at 20:06:08 UTC, wobbles wrote: I would like to write to two files at once. If user specifies verbose flag, output should write to both stdout and the programs standard output file. Any ideas? I should add, I'm using a library that already writes it's output to a