using System; using System.IO; public class TextFileWriter { public static void Main(string[] args) { // create a writer and open the file TextWriter tw = new StreamWriter("hacked.txt"); // write a line of text to the file tw.WriteLine("Hacked by Penetration Tester " + DateTime.Now); // close the stream tw.Close(); } }