comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Reading-in ASCII Files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Reading-in ASCII Files [message #15985] Wed, 23 June 1999 00:00
Pavel Romashkin is currently offline  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'
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: boundary/edge detection source ?
Next Topic: Reading-in ASCII Files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 04:45:12 PDT 2025

Total time taken to generate the page: 1.20180 seconds