RE: Initialize parameters by external files?
- From: meek@xxxxxxxxxxxxxxx
- Date: 12 MAY 06 12:48:13 GMT
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 )
.
- Follow-Ups:
- Re: Initialize parameters by external files?
- From: Harold Stevens
- Re: Initialize parameters by external files?
- References:
- Initialize parameters by external files?
- From: Jürgen Weithöner
- Re: Initialize parameters by external files?
- From: Kevin G. Rhoads
- Initialize parameters by external files?
- Prev by Date: Re: F95 standard
- Next by Date: Re: Error in executing Fortran
- Previous by thread: Re: Initialize parameters by external files?
- Next by thread: Re: Initialize parameters by external files?
- Index(es):