Printing a file

I am writing a program where I want it to automatically print some reports that I'm generating. Is there a simple way to send a file to the printer to print in C++?
Try an infinite loop that terminates when istream receives an EOF.

istream would store the data in a string, which would be printed by cout in that loop.

EDIT: Any simpler than that, and I'd have to brush up on my iostream.

-Albatross
Last edited on
No, I want to take a created file and output it to a printer to create a hard copy of the file.
Topic archived. No new replies allowed.