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

Home » Public Forums » archive » Re: Config files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Config files [message #47414 is a reply to message #47412] Thu, 09 February 2006 04:18 Go to previous messageGo to previous message
Edd Edmondson is currently offline  Edd Edmondson
Messages: 50
Registered: January 2003
Member
Ben Panter <me@privacy.net> wrote:
> I would use save and restore, but start out with a batch file which can
> do the save and restore for you. Something like this:

> set_config.pro:

> ;change these parts:
> input = myinputdata.dat
> output = myoutputwillgohere.dat
> aconstant = 1.0
> anarray = [1,2,3]

> ;leave this alone:
> save, input, output, aconstant, anarray, filename='settings.sav'


> When you start a run, call @set_config and then later on in the code do
> a restore, 'settings.sav'. I do something similar, but save the settings
> in a struct rather than loose parameters. That way it's easier to pass
> around to any routines that need it later on, and I'm less likely to use
> the parameter names for something else by mistake.

> Hope that's helpful,

Cracking idea, and I'm kicking myself for not having thought of it!

--
Edd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: help with text widget...
Next Topic: Re: IDLWave documentation generation

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

Current Time: Fri Oct 10 04:28:23 PDT 2025

Total time taken to generate the page: 0.24349 seconds