public void Save() { using (StreamWriter sw = new StreamWriter(FileName)) { foreach (string [] pieces in Lines) { sw.WriteLine(string.Format("{0}|{1}|{2}|{3}", pieces [0], pieces [1], pieces [2], pieces [3])); } } var fi = new FileInfo(FileName); TLPort.Run("git", string.Format("add {0}", fi.Name), fi.DirectoryName); }
private List <string> Run(string filename, string arguments) { return(TLPort.Run(filename, arguments, PortDirectory)); }