A
A
anonymous2017-07-12 23:29:18
.NET
anonymous, 2017-07-12 23:29:18

How to make a ban on editing a file for the second user if it was opened by the first user?

How to do it more logically and rationally? There is a
file
If the first user opened it for editing, the second one can open it only for reading
edit
What more reasonable suggestions do you have?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2017-07-12
@anonymouss

https://msdn.microsoft.com/en-us/library/system.io... - the value of this parameter must be set to Read. It is not necessary to fence bicycles, it is worth studying the standard library.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question