Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: Input/Output files

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

Stephen Edwards (edwards@CS.VT.EDU)
Wed, 26 Sep 2001 09:04:18 -0400


Message-ID:  <3BB1D252.26EE48F4@cs.vt.edu>
Date:         Wed, 26 Sep 2001 09:04:18 -0400
From: Stephen Edwards <edwards@CS.VT.EDU>
Subject:      Re: Input/Output files

> I used standard input/output (writeln and readln) but
> for some reason the redirection seems to be giving my program problems

Note that you can try out your program to make sure it is reading/writing
correctly from the command line.

Whether you are working in linux or windows, compile your program, and
then from a shell command line (the prompt in an MSDOS window in Windows),
run your program like this:

    myprog < myinput.txt > myoutput.txt

Then you'll know how things are working without having to submit it to
the curator.

                                -- 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>