[comp.lang.pascal] Standard I/O in TP

wsinpp@lso.win.tue.nl (Peter Peters) (05/31/90)

I'm wondering if anybody has solved the problem of getting
unix/C like standard I/O in TP. What I mean is this :

Can I get TP to read/write any type of file using standard I/O.
I tried to use DOS redirection, but reading a binairy file
with Read(Input,Byte) will result in end of file after the
first ^Z in the file (which is likely to occurr more often
in a binairy file).

A second attempt I did was assigning a file "stdin" of type "file"
to standard input by : Assign(stdin,'');
Resetting this file (Reset(stdin,1)) results in an error. So it is
probably detected somewhere that binairy files are not allowed.

Anyway, has somebody tackled this problem, and if so are you willing
to let me in on your experiences and/or results.....

		Tnx in advance,
			Peter.
-- 
| Peter Peters                              | UUCP : wsinpp@lso.win.tue.nl  |
| Eindhoven University of Technology (TUE)  | SURF : heithe5::wsdcpp        |
| Dept. of Mathematics and Computer Science | VHF  : PA0PPE                 |
| Disclaimer : I said WHAT ???              | TUE  : HG 8.86 tst. 4283      |