Name : Recorder
Keywords : .txt
Description : It shows you a console where if you write a text, it will show in "uloziste.txt".
Code:
using System. IO;
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Title = "Zapisovač - by Chhaos.";
Console.Out.WriteLine("Chcete zpustit zapisovač ? [y/n]");
string em = Console.ReadLine();
if (em == "n")
{
Console.Clear();
Console.ForegroundColor = ConsoleColor.Cyan;
Console.Out.WriteLine("Program ukončíte libovolnout klávesou.");
Console.ReadLine();
}
while (em == "y")
{
Console.ForegroundColor = ConsoleColor.Red;
Console.Clear();
Console.Out.WriteLine("Můžete psát. Jméno souboru bude uloziste.txt - neměnit jméno ! ");
Console.Out.WriteLine(" by Chhaos.");
Console.Out.WriteLine("");
string a = Console.ReadLine();
StreamWriter sr = new StreamWriter("uloziste.txt", true);
sr.WriteLine(a);
sr.Close();
}