Vidyalelo
C# Programming · Q62

File Handling and Input Output in C Sharp

Programming · C# Programming · question 62

Q62

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
Answer
C.
FileMode.OpenOrCreate
D.
FileMode.Truncate

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board