Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: redirection in Pascal

New Message Reply About this list Date view Thread view Subject view Author view

Stephen Edwards (edwards@CS.VT.EDU)
Mon, 17 Sep 2001 09:30:25 -0400


Message-ID:  <3BA5FAF1.2AFFD562@cs.vt.edu>
Date:         Mon, 17 Sep 2001 09:30:25 -0400
From: Stephen Edwards <edwards@CS.VT.EDU>
Subject:      Re: redirection in Pascal

> Scott Preddy wrote:
>
> Is it possible to do file redirection in Pascal? For example, what if I
> wanted to redirect an input file to standard input? Thank you.

If you are running your program in a DOS box, do it the obvious way:

    C:> myprog < input.txt > output.txt

                                -- Steve

--
Stephen Edwards            604 McBryde Hall          Dept. of Computer Science
e-mail      : edwards@cs.vt.edu           U.S. mail: Virginia Tech (VPI&SU)
office phone: (540)-231-5723                         Blacksburg, VA  24061-0106
-------------------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>