Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!pacbell!att!ihuxy!vg55611 From: vg55611@ihuxy.ATT.COM (Gopal) Newsgroups: comp.lang.pascal Subject: Re: DUEL OUTPUT Message-ID: <2881@ihuxy.ATT.COM> Date: 6 Mar 89 02:39:43 GMT References: <18461@adm.BRL.MIL> <1265@sdcc15.ucsd.edu> <1868@valhalla.ee.rochester.edu> Reply-To: vg55611@ihuxy.UUCP (55611-Gopal,V.P.) Organization: AT&T Bell Laboratories - Naperville, Illinois Lines: 28 >>In article <18461@adm.BRL.MIL>, pmancini@lynx.northeastern.edu writes: >> >> I would like to know what is (if possible) standard >> implementation in PASCAL to send text output simultaneously >> to the screen and to a LST device or file. I hate having to >> write lines twice, such as; >> >> writeln('abcdefg12345'); {goes to screen} >> writeln(lst,'abcdefg12345'); {goes to printer} Utility programs are available on many operating systems that will do a "TEE" operation - i.e. that will send the standard output to both the standard output (say screen) and an auxiliary file. I know something like this exists for UNIX and I have seen something similar for MS-DOS (unfortunately have neither one). On MS-DOS, you can also use the -prtsc functions to copy the standard output to the printer along with the display. MS-PASCAL allows you to create a string variable that is formatted with the output of the writeln; but I don't think there are many MS_PASCAL users in the DOS world. Venu P. Gopal UUCP: att!ihuxy!vg55611 Internet: vg55611@ihuxy.att.com BITNET: com%"vg55611@ihuxy.att.com" or com%"vg55611%ihuxy@research.att.com" Save 500 million keystrokes a day; silence those silent letters forever.