using System;
using System.IO;
class Teste
{
public static void Main()
{
	string str;
	StreamWriter arq;
	arq = new StreamWriter("texto.txt");
	StreamWriter arq = new StreamWriter(arq);
	Console.Write("Digite 'fim' para encerrar");
	do
	{
	str = Console.ReadLine();
	if (str != "fim")
	{
	str = str + "\n";
	arq.Write(str);
	}
	} while (str != "fim");
	arq.Close();
	}
}
