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