6 Aralık 2014 Cumartesi

C# txt dosyasındaki tüm bilgileri ekrana yazdırma kodları

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ConsoleApplication12
{
class Program
{
static void Main(string[] args)
{
string okunan;
StreamReader st =File.OpenText (@"C:\yazi.txt");
while ((okunan = st.ReadLine())!= null)
{
Console.WriteLine(okunan);
}
Console.ReadLine();
}
}
}
Paylaş:

0 yorum:

Yorum Gönder

Popüler

Son

Kategoriler

Arşiv