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. They are deprecated in favor of a "range"
interface. std.range and std.algorithm have examples of ranges that are
first introduced in this article (with different names in Phobos):
http://www.informit.com/articles/printerfriendly.aspx?p=1407357
Ali