Please login to save your progress.
Files and Directories
Exercise: Delete a file
Goal
Delete the file "StarWars.txt"
x
1
using System;
2
using System.IO;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
File.WriteAllText(@".\StarWars.txt", "Han shot first");
9
10
// Your code here.
11
}
12
}
Page 5 of 20