I am working on a SCO box, with C. What I am doing is writing a labels program for a client and would like to know the best of going about sending info to the printer of choice. I had asked a question like this earlier, but instead of a file, I would like to send output to the printer. For example, if my program got data like this:
1234 General Drive
Some City, Some State, 12345
how would I go about sending that to printer?? I could open the dev file myself, but that could cause problems. The way I had thought about doing was to generate a temp file then print the file, but I don't think that is a good way of doing it. Thanks guys.