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 if exists will destroy the old file:

a.

FileMode.CreateNew

b.

FileMode.Create

c.

FileMode.OpenOrCreate

d.

FileMode.Truncate

Posted under C# programming

Answer: (b).FileMode.Create

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 if exists will destroy the old file: