As far as I can tell from the PB 3.5 manual, there are two
distinct ways to lock a file, as below:
open "myfile.dat" for binary as 1
lock 1
or:
open "myfile.dat" for binary lock read write as 1
The first one requires the file to be unlocked before closing the
file, but the book says nothing about unlocking the file if the
second method is used. Does the second way require unlocking,
or as it appears, the unlocking is automatic with the close
statement?
TIA, Colin.
------------------
distinct ways to lock a file, as below:
open "myfile.dat" for binary as 1
lock 1
or:
open "myfile.dat" for binary lock read write as 1
The first one requires the file to be unlocked before closing the
file, but the book says nothing about unlocking the file if the
second method is used. Does the second way require unlocking,
or as it appears, the unlocking is automatic with the close
statement?
TIA, Colin.
------------------
Comment