Please re-read open.
In reply to Re^2: How to save the output result in file by Corion in thread How to save the output result in file by rammohan