Thanks alot for your contributation . I have solved that problem.but not i want output of that program to be transfered on notepad , i don't know how to do this? could anyone plz help?

Thanks ,
Nauroz Baloch