[comp.lang.pascal] Input and Output HELP

anderson@herald.usask.ca (Cathy Anderson) (01/29/91)

I need help, I'm not too familiar with redirecting output in pascal.
I'm using TP 5.5 on a PC and am getting V6.0 within the week.

What I want to do is redirect output to a file and the screen at the
same time.  I can do it to one or the other, or both (if I use 2 lines
for each output)  I was wondering if there is an easier way to do this.

Also, I want to interchangably read from keyboard or file with a
variable.  The variable is just assigned the varible name for a file,
but what is the code for reading from the keyboard.