Append line

Last updated

Last updated
C#
System.IO.File.AppendAllLines(@"C:\text.txt", new List<string>() { "New text" });
System.IO.File.AppendAllText(@"C:\text.txt", "New text");
Python
System.IO.File.AppendAllLines("C:\\text.txt", List[String](["New text"]))
System.IO.File.AppendAllText("C:\\text.txt", "New text")
JavaScript
var host = new _lib.Microsoft.ClearScript.HostFunctions();
var items = host.newObj(_lib.System.Collections.Generic.List(_lib.System.String));
items.Add("New text");
_lib.System.IO.File.AppendAllLines("C:\\text.txt", items);
_lib.System.IO.File.AppendAllText("C:\\text.txt", "New text");