txt dosyasındaki tüm bilgileri ekrana yazma — c# Console

txt dosyasındaki tüm bilgileri ekrana yazma — c# Console

[code lang=”csharp”]

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;//www.gorselprogramlama.com

using System.IO;

namespace ConsoleApplication12

{

class Program

{

static void Main(string[] args)

{

string okunan;

StreamReader st =File.OpenText (@"C:\gorsel.txt");

while ((okunan = st.ReadLine())!= null)//www.gorselprogramlama.com

{

Console.WriteLine(okunan);

}

Console.ReadLine(); //www.gorselprogramlama.com

}

}

}

[/code]

Projeyi İNDİR

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir