On Thu, Jan 19, 2006 at 10:49:06PM +0000, Brian Wichmann wrote:
Dear Emil,
How to I assign the program parameter to an external file without changing the source text?
On 19 Jan 2006, at 22:37, Emil Jerabek wrote:
No. You may reread a file any times by resetting it before each iteration. It does not matter whether it was assigned explicitely or through a program parameter.
Sorry, I misunderstood where the problem was. There are at least three ways to do it:
- Just compile the program as it is, and run it, it will prompt for a file name.
- Give the program a command-line option like this,
stvpas --gpc-rts=-ndatafile:data
it will assign the file "data" to the parameter "datafile".
- Give the compiler the option "--transparent-file-names", then the program will assign file "datafile" to the parameter "datafile".
Emil