[Gambas-user] Additional files for Reading/Writing

Gianluigi bagonergi at gmail.com
Fri Jun 29 12:12:29 CEST 2018


2018-06-29 11:40 GMT+02:00 CD <claude.dessere at orange.fr>:

> Hello,
>
> in an application, I have to read files on the disk,
> but I need the user to edit these files!
>
> I found a solution :
> Create a directory on behalf of the application
> /home/User/.config/gambas3/MonAppli
> and install there, the so-called files.
>
> Is there another solution, I would not have thought of?
>
>
I'm not sure I understood the question.
But this is the general rule:
If I have a read-only file, I can leave it in the project in the Data
folder.
If I need a read-write file, I can use an ini file with Temp$ which I will
then save with Settings.
See:
http://gambaswiki.org/wiki/lang/temp
http://gambaswiki.org/wiki/comp/gb.settings

Gianluigi




>
>
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180629/0d3e9c4f/attachment.html>


More information about the User mailing list