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

Home » Public Forums » archive » Re: Library/Functions to write configuration file for application
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: Library/Functions to write configuration file for application [message #74736 is a reply to message #74735] Mon, 31 January 2011 14:04 Go to previous messageGo to previous message
Robin Wilson is currently offline  Robin Wilson
Messages: 40
Registered: August 2010
Member
On 31/01/2011 19:52, Paolo wrote:>
> Well, if the values can only be int, floats or strings, nothing
> like a good old-fashioned text file in format
>
> parname = parvalue
> anotherparname = anothervalue
>
> etc.
>
> which is quite easy to parse.

This is the sort of format I was thinking of, but I wasn't sure how to
parse it in a nice way. 'Nice' in this context means that:

* It can cope with strings, integers and floats
* The order of the file either doesn't matter, or can be changed fairly
easily
* New parameter names can be added to the code fairly easily
* Comment characters can be used
* Preferably that I don't have to write loads and loads of IF statements
to parse the file correctly.

Is something along those lines fairly easy to do myself? Or should I
wait for Paulo's routines?

Cheers,

Robin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: new graphics map coords
Next Topic: Re: IDL 8 NG widget problem

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

Current Time: Thu Oct 09 17:41:43 PDT 2025

Total time taken to generate the page: 0.64092 seconds