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 | Tags: file,lock | By: silent | Respond

No comments yet

Post a Comment
 

prev | | next