using System.IO; namespace ConsoleApplication4 { internal class Program { private static void Main(string[] args) { StreamWriter inputFile = new StreamWriter("inputfile.txt"); try { inputFile.WriteLine("Friends"); } finally { if (inputFile != null) { inputFile.Close(); } } } } }
Leave a Reply