jacks@pogo.TEK.COM (Jack Slingerland) (06/29/87)
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