using System;
using System.IO;
class Sentences
{
static void Main(string[] args)
{
StreamWriter myFile = File.AppendText("file.txt");
string line;
do
{
Console.Write("Enter a sentence: ");
line = Console.ReadLine();
if (line != "")
myFile.WriteLine(line);
}
while (line != "");
myFile.Close();
}
}