using System; using System.IO; class Program { static void Main() { Console.WriteLine("Olvasás fájlból"); StreamReader olvaso = File.OpenText("adat.txt"); string sorok = olvaso.ReadToEnd(); Console.WriteLine(sorok); olvaso.Close(); } }