Using StreamWriter
using System;
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
StreamWriter MyStreamWriter = new StreamWriter(@"c:\Testing.txt");
string MyString = "Hello World";
MyStreamWriter.Write(MyString);
MyStreamWriter.Close();
}
}
|
HTML code for linking to this page:
Related in same category :
-
-
-
-
-
-
-
-
|