I have attached my code alongwith this query.
The problem I am facing is, that although the the code seems to work fine it doesn't actualy cause the printer to take a printout.
for my application, i am using a postscript printer which will generate a .ps type of file which can then be converted to .pdf
The local printer has been succesfuly installed and is working well.
but when I run my program, i simply picks the data from text1.txt and pastes it onto the output file. There is no sign of any postscript headers or footers which means that it is unable to force the printer to take a print.
I am unable to figure out what is wrong.