There is a code:
do { using (StreamWriter file = new StreamWriter("news.txt", true)) { file.WriteLine($"{ Console.ReadLine()}"); } } while (Console.ReadLine() != ""); You need to implement an entry in news.txt one line from the console before the user skips the line by pressing Enter. This method for some reason records not all the lines, namely, it passes each second