and how can print the out file on paper
On Linux you can use evince to view and print postscript files, or convert it to PDF with ps2pdf, and view/print with Acrobat reader. Ghostview/ghostscript will also work, but the user interface is not as nice.
If you're on windows, I have no idea, but I'm sure there are a number of postscript viewers available that you can print from. Do a search, or maybe someone else can step in here who knows windows.
Shouldn't be too hard, since many printers and print drivers understand postscript natively.