1.

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

Answer» Correct option is (a) FileMode.CreateNew

The explanation: Creates a new output file. The file must not already be existing.


Discussion

No Comment Found

Related InterviewSolutions