James Ray Anderson

James Ray Anderson
James Ray Anderson
0 comments

Write a text file in C# in seconds!

2:11 PM
Writing to a text file is as easy as delcaring the using System;using System.IO; and using a little code such as:

TextWriter tw = new StreamWriter("C:\\TodaysDate.txt");
tw.WriteLine(DateTime.Now.ToString());
tw.Close();

0 comments:

 
Toggle Footer
Top