Read simple text file using c#

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 1121
using System;
using System.Data.SqlClient;
namespace Test1
{
class Program
{
static void Main(string[] args)
{

using (StreamReader rd = new StreamReader("D:\\txt.txt"))
{
String Value = rd.ReadToEnd();
Console.WriteLine(Value);
}
Console.ReadLine();
}
}
}

Comments or Responses

Posted by: Phagu007 on: 7/19/2013 Level:Starter | Status: [Member] | Points: 10
Thank for submitting sample code for reading simple text file using C -sharp

Login to post response