Article View: comp.sys.mac
Article #17104stdin in MPW Pascal
From: Jack Slingerland
Date: Mon, 29 Jun 1987 16:35
Date: Mon, 29 Jun 1987 16:35
20 lines
1435 bytes
1435 bytes
MPW tools are supposed to take input from files specified on the
command line, with 'standard input' being the default if no files
are specified. In C it is easy to implement this behavior by
assigning the appropriate file pointer to a generic input stream.
I have been unable to find a comparable method in MPW Pascal. It
won't allow things like "InFile := Input;" -- it generates a "you
can't assign files" type of message. The problem seems to be that
Pascal doesn't really have an analog to the C file pointer -- a
variable that "represents" a file, but isn't one.
In any case, any suggestions for how to use Pascal to implement the
desired input behavior for an MPW tool?
-----------------------------------------------------------------
Jack Slingerland (503) 685-3985
jacks@tigger.GPID.TEK.COM
...tektronix!tigger!jacks || ...tektronix!ogcvax!slinger
Technical Details
Message-ID:
<3511@pogo.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!ll-xn!ames!amdcad!cae780!tektronix!orca!pogo!jacksShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!husc6!mit-eddie!ll-xn!ames!amdcad!cae780!tektronix!orca!pogo!jacks From: jacks@pogo.TEK.COM (Jack Slingerland) Newsgroups: comp.sys.mac Subject: stdin in MPW Pascal Message-ID: <3511@pogo.TEK.COM> Date: Mon, 29-Jun-87 12:35:37 EDT Article-I.D.: pogo.3511 Posted: Mon Jun 29 12:35:37 1987 Date-Received: Wed, 1-Jul-87 04:27:39 EDT Distribution: na Organization: Tektronix Inc., Beaverton, Or. Lines: 20 Keywords: standard input MPW tool