please tell me how to lock file in c#

Thanks

Edit
Report