The easiest way (I think) is to create a string and use the System.IO.File.WriteAllText method:
Code:string contents = ""; foreach(string line in lines) contents += line + Environment.Newline; File.WriteAllText(path, s, Encoding.Default);
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |