//Write with BOM
File.WriteAllText(path, content,new UTF8Encoding(true));
//Write with no BOM
File.WriteAllText(path, content,new UTF8Encoding(false));
UTF8Encoding 建構函式 (Boolean) (System.Text)
KB-UTF8Encoding And BOM - 黑暗執行緒
//Write with BOM
File.WriteAllText(path, content,new UTF8Encoding(true));
//Write with no BOM
File.WriteAllText(path, content,new UTF8Encoding(false));