[Gambas-user] Write-Read from text file

Eilert eilert-sprachen at ...221...
Tue Jun 27 08:43:08 CEST 2006


Jose J. Rodriguez schrieb:
> On 6/26/06, LinuxSeeker <linuxseeker at ...626...> wrote:
>> I am writing a program that needs to interact with the user and save the
>> user's preferences (name, number of textboxes etc) in a text file (named
>> "conf") at the same directory where the executable is located.
>>
> [snip]
>>  Any suggestions on how to make this work? How can I update the
>> configuration file without re-writing the entire configuration file? How do
>> I select which line to read from?
>>
> 
> You should consider using the Gambas component gb.settings
> (Application settings management):
> http://www.gambasdoc.org/help/comp/gb.settings
> 
> Regards,
> Joe1962
> 


Hi Jose,

Thanks for this tip - never knew about this thing. But it's heavily 
undocumented, I doubt he'll get it to work as even I have some problems 
understanding how it would work.

If you know how to handle it, shouldn't we develop some easy examples?

Just like

- initiating a new ini-file
- reading from the ini-file
- writing values into it
- replacing values

Regards

Rolf




More information about the User mailing list