Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!bradley!bucc2!nez From: nez@bucc2.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo Pascal vs. the Input standard Message-ID: <32100007@bucc2> Date: Wed, 3-Jun-87 20:24:00 EDT Article-I.D.: bucc2.32100007 Posted: Wed Jun 3 20:24:00 1987 Date-Received: Wed, 10-Jun-87 05:44:33 EDT References: <2575@ncoast.UUCP> Lines: 32 Nf-ID: #R:ncoast.UUCP:2575:bucc2:32100007:000:1233 Nf-From: bucc2.UUCP!nez Jun 3 19:24:00 1987 /* Written 7:43 pm May 30, 1987 by ncoast.UUCP!allbery in comp.sys.ibm.pc */ > I'm trying to write a program which will read standard input or files named > on the command line. (It's a program to expand tabs and formfeeds for my > DuMbPrinter-105.) The main block seemed simple enough: > > begin > . > . Some code is placed here... > . > end. > > My Turbo Pascal (3.01A) doesn't seem to recognize Input as a file. > I leave it undeclared, I get a compile error `unknown identifier or syntax > error'; if I declare it, I get I/O error 02 (file not reset). I tried using the standard file 'Con' and it compiled without errors (since my program was as useful as your code fragment, I don't know whether it's free of run-time errors.) You can use the input files 'Con' and 'Kbd' and output files 'Con' and 'Trm' for standard i/o. (Characters input with 'Kbd' aren't echoed to the screen.) Hope this helps... Rich Neswold =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= / bucc2!nez ...!ihnp4!bradley!- cyber!xx64194 \ buee730!nez =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=