[Gambas-user] Documentation for LOCK

Hans Lehmann hans at gambas-buch.de
Tue Oct 30 12:14:03 CET 2018


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


More information about the User mailing list