first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

C# Code: Using System.IO.FileStream and System.IO.StreamWriter to Write a String to a File

/* using System.IO; */

using ( FileStream fs = new FileStream( @"C:\\File.txt", FileMode.Create ) ) { using ( StreamWriter sw = new StreamWriter( fs ) ) { sw.Write( "My text." ); } }

mod date: 2008-05-02T16:43:40.000Z