[Gambas-user] Documentation for LOCK
Benoît Minisini
g4mba5 at gmail.com
Tue Oct 30 12:33:05 CET 2018
Le 30/10/2018 à 12:14, Hans Lehmann a écrit :
>
> Hello.
>
> I am working on a chapter "Paths in Gambas" for the Gambas book in
> connection with the stream & input/output functions.
> The documentation says:
>
> /Beware that the locked file is emptied! So never use a file whose
> contents is important./
>
> But when I execute the following statement:
>
> Public hLockFile As Stream
> ...
> Try hLockFile = Lock Desktop.DataDir &/ "gambasbook/test.txt"
>
> then the file is not emptied. Is the documentation faulty?
>
> Yours sincerely
>
> Hans
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
It depends on the Gambas version. Now it is not emptied anymore.
Regards,
--
Benoît Minisini
More information about the User
mailing list