Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!husc6!rutgers!ames!oliveb!pyramid!uccba!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: comp.sys.ibm.pc Subject: Re: Turbo Pascal vs. the Input standard Message-ID: <2701@ncoast.UUCP> Date: Sun, 21-Jun-87 21:09:48 EDT Article-I.D.: ncoast.2701 Posted: Sun Jun 21 21:09:48 1987 Date-Received: Tue, 23-Jun-87 01:34:29 EDT References: <2575@ncoast.UUCP> <32100007@bucc2> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.sys.ibm.pc Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 28 As quoted from <32100007@bucc2> by nez@bucc2.UUCP: +--------------- | 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.) +--------------- No, you can't; I was trying to accept "pr < file" or "pr file"; using Con or Trm doesn't get redirected input from a file. As it turned out, I had to include a "program pr(Input, Output);" at the beginning to get it to work; I usually leave this off because I consider the standard Pascal way of declaring files to be a major lossage. (Then again, it seems to have been devised for card-fed systems where you have to associate logical files with physical files at the JCL level.) ++Brandon -- Copyright (C) 1987 Brandon S. Allbery. Redistribution permitted only if the redistributor permits further redistribution. ---- Moderator for comp.sources.misc and comp.binaries.ibm.pc ---- Brandon S. Allbery {decvax,cbosgd}!cwruecmp!ncoast!allbery aXcess Company {ames,mit-eddie,talcott}!necntc!ncoast!allbery 6615 Center St. #A1-105 necntc!ncoast!allbery@harvard.HARVARD.EDU Mentor, OH 44060-4101 +01 216 974 9210 (also eddie.MIT.EDU)