adplus-dvertising
frame-decoration

Question

Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.

a.

FileMode.CreateNew

b.

FileMode.Create

c.

FileMode.OpenOrCreate

d.

FileMode.Truncate

Posted under C# programming

Answer: (a).FileMode.CreateNew

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.