nerdexam
Microsoft

98-372 · Question #133

You have created a program that writes status updates into a file. You want to modify the file. You need to ensure that other users can view the file while it is being modified. Which permission…

The correct answer is D. FileShare.Read. See the full explanation below for the reasoning.

Question

You have created a program that writes status updates into a file. You want to modify the file. You need to ensure that other users can view the file while it is being modified. Which permission should you use to open the file?

Options

  • AFileShare.None
  • BFileAccess.Read
  • CFileAccess.Write
  • DFileShare.Read
  • EFileShare.Inheritable

How the community answered

(51 responses)
  • A
    2% (1)
  • B
    6% (3)
  • C
    2% (1)
  • D
    78% (40)
  • E
    12% (6)

Community Discussion

No community discussion yet for this question.

Full 98-372 Practice