Sending a text file to printer using BC++ 5.02

Is there an easy way to print a text file to the printer?
I am after a function that calls WinAPIi or ObjectWindows to do the print
job. Thanks!

Cheers
James