[Gambas-user] Write-Read from text file

Eilert eilert-sprachen at ...221...
Tue Jun 27 10:40:01 CEST 2006


Reeaally interesting, Timothy,

thank you for that!

Regards

Rolf


Timothy Marshal-Nichols schrieb:
> Hello,
> 
> I have written a application settings class that does a little more than the
> Gambas class.
> 
> * It works more like the VB6 save settings
> * You can add comments to the file
> * You can save a most recent file list
> 
> Attached is a copy. It includes a demo of how to use the class.
> 
> This demo was written in Gambas 1.9.32. If you want to use this class in
> Gambas 1 then do the following:
> 1. Open the project
> 2. Resize the form
> 3. Do a compile all
> 4. You will then get three errors. There should be a comment at each error.
> Do that. (The errors are from things that have changed in Gambas.)
> 
> Thanks
> 
> 8-{)} Timothy Marshal-Nichols
> <mailto: timothy.marshal-nichols at ...247...>
> 
> 
>> -----Original Message-----
>> From: gambas-user-bounces at lists.sourceforge.net
>> [mailto:gambas-user-bounces at lists.sourceforge.net]On Behalf Of Eilert
>> Sent: Tuesday, 27 June 2006 07:43
>> To: mailing list for gambas users
>> Subject: Re: [Gambas-user] Write-Read from text file
>>
>>
>> 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
>>
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make
>> your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>> ------------------------------------------------------------------------
>>
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list