Creating stream from stdout

2011-04-23 Thread Mandeep
I have created a stream from stdout by using the following method. new CFile(stdout.getFP(), FileMode.Out) It works but is this the correct way or is there a better way to achieve this without FP. Thanks & Regards Mandeep

Re: Creating stream from stdout

2011-04-23 Thread Ali Çehreli
On 04/23/2011 04:23 AM, Mandeep wrote: I have created a stream from stdout by using the following method. new CFile(stdout.getFP(), FileMode.Out) It works but is this the correct way or is there a better way to achieve this without FP. Thanks & Regards Mandeep Consider streams gone from D. T

Re: Creating stream from stdout

2011-04-23 Thread Jonathan M Davis
> On 04/23/2011 04:23 AM, Mandeep wrote: > > I have created a stream from stdout by using the following method. > > > > new CFile(stdout.getFP(), FileMode.Out) > > > > It works but is this the correct way or is there a better way to achieve > > this without FP. > > > > Thanks & Regards > > Mande

Re: Creating stream from stdout

2011-04-23 Thread Ali Çehreli
On 04/23/2011 04:32 PM, Jonathan M Davis wrote: >> On 04/23/2011 04:23 AM, Mandeep wrote: >>> I have created a stream from stdout by using the following method. >>> >>> new CFile(stdout.getFP(), FileMode.Out) >>> >>> It works but is this the correct way or is there a better way to achieve >>> th

Re: Creating stream from stdout

2011-04-23 Thread Jonathan M Davis
> On 04/23/2011 04:32 PM, Jonathan M Davis wrote: > >> On 04/23/2011 04:23 AM, Mandeep wrote: > >>> I have created a stream from stdout by using the following method. > >>> > >>> new CFile(stdout.getFP(), FileMode.Out) > >>> > >>> It works but is this the correct way or is there a better wa

Re: Creating stream from stdout

2011-04-24 Thread Ali Çehreli
On 04/23/2011 10:37 PM, Jonathan M Davis wrote: > stdin and stdio are _not_ streams. How do you define "stream"? stdin and stdout are streams. > They're instances of std.stdio, and they > are _not_ going away. As far as I know, nothing in std.stdio is going away. That's correct. I've been i