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();
}
}
}
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
Post a Comment