FileStream: LockStream

LockStream

Locks a portion of a file to prevent write access for other processes.



 Public Sub LockStream(
	  ByVal Position As Currency,
	  ByVal Length As Currency )

Parameters

Position
[ByVal] Currency. The starting position in the file to begin locking.
Length
[ByVal] Currency. The number of bytes to be locked.

Remarks

Onces a section of the file is locked, read access is still allowed to other processes.

See Also

Project CorLib Overview

Class FileStream Overview