The resource has not been reviewed by Editors yet. Readers are adviced to use their best judgement before accessing this resource. This resource will be reviewed shortly. If you think this resource contain inappropriate content, please report to webmaster. |
Here is the C# code sample to create and write to a text file.
System.IO.StreamWriter writer;
writer = System.IO.File.CreateText("c:\\TestFile.txt");
writer.WriteLine("hello file!");
writer.Close();