delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/08/12:21:19

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!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019