Writing Text Data to a File in C# ?

Sabarimahesh
Posted by Sabarimahesh under C# category on | Points: 40 | Views : 1969
using System;
using System.IO;

namespace csharp_station.howto
{
class Txt_filewrite
{
static void Main(string[] args)
{
TextWriter Txtw= new StreamWriter("Txtw.txt");
Txtw.WriteLine(DateTime.Now);
Txtw.Close();
}
}
}

Comments or Responses

Login to post response