List Of Snippets With Tag: "file"

Howto lock file in Files and Directories

by Benoit in gambas-user mailing list

DIM hFile AS File

TRY hFile = LOCK "~/lock"
IF ERROR THEN
 PRINT "Already locked by something else!"
ELSE
 PRINT "Got locked!"

 UNLOCK hFile
ENDIF

Posted: 2008.10.05 19:23 | By: silent | 0 comments

1