C# - Simple program that dumps text files to the windows console.

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


namespace ProgrammingDotNet
{
    class Program
    {
        public static void Main(string[] args)
        {
            String filename = "C:\\Users\\Isuru\\Desktop\\google_5000000.txt";
            StreamReader reader = new StreamReader(filename);
            for (String line = reader.ReadLine(); line != null; line = reader.ReadLine())
            {
                Console.WriteLine(line);
            }
            reader.Close();
            Console.ReadLine();
        }
    }
}

Comments

Popular posts from this blog

Offers on Friday, April 24, 2020

Fatal: LoadModule: error loading module 'mod_sql_mysql.c'