Examveda

In C#, what method is used to create a new file if it does not exist, or overwrite the existing file if it does exist?

A. File.Open()

B. File.CreateText()

C. File.Create()

D. File.OpenWrite()

Answer: Option C


Join The Discussion

Related Questions on File Handling and Input Output in C Sharp