public void TestAppendAllTextEncoding() { var filename = Util.CreateNewFileUnicode(longPathDirectory); try { File.AppendAllText(filename, "test", Encoding.Unicode); Assert.AreEqual("beginning of file" + Environment.NewLine + "test", File.ReadAllText(filename, Encoding.Unicode)); } finally { File.Delete(filename); } }
public static void AppendAllText(string path, string contents, Encoding encoding) { File.AppendAllText(path, contents, encoding); }
public static void AppendAllText(string path, string contents) { File.AppendAllText(path, contents); }