Kizspy | Question: 33
(Choose 1 answer)
Neverflow ***
Which of the following is the correct way to create a new file using the File class?
A. File.WriteAllText("example.txt", "Hello, World!");
B. File.Create("example.txt", "Hello, World!");
C. File.CreateNew("example.txt", "Hello, World!");
D. File.Open("example.txt", FileMode.Open);