// depending on how long your file is, you may need to take a different approach // how the text is read and written to the file string text = File.ReadAllText(path); byte[] buffer = UTF8Encoding.UTF8.GetBytes(text); using (FileStream fs = File.OpenWrite(utf8Path)) { fs.Write(buffer, 0, buffer.Length); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)