Re: Reading-in ASCII Files [message #15985] |
Wed, 23 June 1999 00:00 |
Pavel Romashkin
Messages: 166 Registered: April 1999
|
Senior Member |
|
|
If you already know all the values for your variables and want to writethem into ASCII file, why not write them in advance into IDL .sav file and then restore from within a function? That will speed up reading,
eliminate the need for special importing procedure and variable names are going to be defined as well.
konu@tuli.dhs.org wrote:
> Hello,
>
> I've written a program that has quite a few input parameters. Passing all the parameters as arguments is impractical. I think, that instead, I should an ASCII file for input. What I want to do looks like this:
>
> PRO REGISTER, Input_file
> @Input_file ; I know I can't do this
> ...
> END
>
> Does anyone how know to get the behaviour I desire on the second line.
>
> Input_file is an ASCII file that looks like this:
>
> ; some informative comment
> var_1 = 5
> ; more comments
> var_2 = 'string/to/a_filename'
|
|
|