txt dosyası oluştur ve bilgi ekle– C# Console
[code lang=”csharp”]</pre>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;//www.gorselprogramlama.com
using System.IO;
namespace text_dosya_olustur_ve_yazi_ekle
{
class Program
{
static void Main(string[] args)
{
StreamWriter streamWriter = File.CreateText(@"C:\gorsel.txt");
Console.Write("Bilgiyi giriniz >>>");//www.gorselprogramlama.com
string bilgi = Console.ReadLine();
streamWriter.WriteLine(bilgi);
streamWriter.Close();
}
}//www.gorselprogramlama.com
}
<pre>[/code]

