using System.IO;string path = @"C:\test.txt";for(int i = 0; i < 6; i++){if(i == 0){File.WriteAllText(path, Console.ReadLine());}else{File.AppendAllText(path, Enviroment.NewLine + Console.ReadLine());}}