Salem
> #include<iostream>
Where is the
using namespace std;

> void main
main returns an int.
done, but no difference in output.


> outfile.put('\f');
After this, why not have say

Code:
outfile.close();
cout<<" out of loop";
getch();
i think c++ will close the outfile automatically when the dtor will be called.
any way i tried it, but no difference in output.



> nothing is printed .
Did you switch the printer on?
Try printing something using say notepad, both BEFORE and AFTER your program is run. It would also be interesting to see if your output appears in between printing two other things.
printer is on and ok
it prints my other documents from notepad,Mword etc..