When you open a file, you can also select the proportion of the file to determine its beaviour when another program requires this file:
(from msdn: http://msdn.microsoft.com/en-us/library/y973b725.aspx )
File.Open Method (String, FileMode, FileAccess, ** FileShare ** )
Parameters
way
Type: System.String
File to open.
Mode
Type: System.IO.FileMode
A FileMode value that indicates whether the file is created if it does not exist and determines whether the contents of existing files are saved or overwritten.
Access Type: System.IO.FileAccess
A FileAccess value that indicates the operations that can be performed in the file.
* share
* Type: System.IO.FileShare *
The FileShare value, which determines the type of access to other streams, belongs to the file.
source share