if (res.StartsWith("*")) { using (StreamWriter sw = new StreamWriter(@"C:\Users\MyPC\Desktop\test.txt")) { sw.WriteLine(res); sw.Flush(); SendKeys.SendWait("{ENTER}"); SendKeys.Flush(); } }
public StreamWriter( string path, bool append )
Environment.NewLine
sw.WriteLine(res + Environment.NewLine);
string res = "*AAA"; if (res.StartsWith("*")) { using (StreamWriter sw = new StreamWriter(@"C:\report.txt",true)) { sw.WriteLine(res); sw.Flush(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)