Create simple text file using C#

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

using (StreamWriter sw = new StreamWriter("D:\\txt.txt"))
{
sw.WriteLine("This is line");
}
Console.ReadLine();
}
}
}

Comments or Responses

Login to post response