delorie.com/archives/browse.cgi | search |
Message-Id: | <199801081720.SAA09888@agora.stm.it> |
Reply-To: | <@stm.it> |
From: | "Fabrizio" <fab DOT fabiani AT agora DOT stm DOT it> |
To: | <djgpp AT delorie DOT com> |
Subject: | Redirect standard output to a printer |
Date: | Thu, 8 Jan 1998 18:19:59 +0100 |
MIME-Version: | 1.0 |
Dear Gurus I need to know how to redirect in a c++ program standard output to a printer. For example if I direct the output on video I write cout<<variable_name, if I direct the output to a file I write: fstream channel_name("file_name",ios::in) channek_name<<"something". Now if it exist, which is the standard printer channel ? Which is the file name associated to a printer ? Else what can I do? Thanks a lot for your answer!
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |