Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 exptools 1/6/84; site ihuxk.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!ihuxk!db21 From: db21@ihuxk.UUCP (Dave Beyerl) Newsgroups: net.micro.cpm Subject: Re: Turbo Pascal output Message-ID: <864@ihuxk.UUCP> Date: Wed, 23-Jan-85 07:06:14 EST Article-I.D.: ihuxk.864 Posted: Wed Jan 23 07:06:14 1985 Date-Received: Thu, 24-Jan-85 07:01:13 EST References: <1230@trwrba.UUCP> Organization: AT&T Bell Labs, Naperville, IL Lines: 31 > Subject: Turbo Pascal output > > Is there a method that enables program output to be sent > to the screen and printer??? Cntrl-P works when running > CPM, but from Turbo Pascal, it doesn't. (at least not on > my machine.) Do I make the program a .COM file and use Cntrl-P?? > Thanks in advance for any help given. > Mark Falleroni > TRW > Ogden,Ut. > (mdf) > In order to print output to both the screen and the line printer in Turbo Pascal under CP/M you must include a second writeln statement which directs its output to the Lst device. For example, to print the string 'Hello There!' on both the screen and printer, you would include the following lines in your program: writeln ('Hello There!'); { print on screen } writeln (Lst,'Hello There!'); { print on printer } This is discussed beginning in section 14.5, Text Files, of my Turbo manual. There is a program with examples in section 14.5.1, and a description of the logical devices given in section 14.5.2. Dave Beyerl ihuxk!db21 AT&T Bell Labs, Naperville, IL