RE: Initialize parameters by external files?



In a previous article, "Kevin G. Rhoads" <kgrhoads@xxxxxxxxxxxx> wrote:
One common method is to interactively read values in from the console. When the code is operating
satisfactorially, one replaces the human interaction with command-line redirection from a text file.
Whether that suffices, only you san say.

To expand (in DOS or command line prompt in XP) ,
because I didn't know this for a long time myself, and
and it's extremely useful, by itself or combined with
one of more levels of batch files:
At the DOS/command line prompt type
mprog < kbdentry.txt
Where myprog is the executible, and kbdentry.txt (any
name, any extension you like , I usually use .inp)
is the replacement for your keyboard entry.
Chris
(You can do the same with o/p , myprog < x.inp > x.out )
.