摘要:
//工具类public static class FormUpload { private static readonly Encoding encoding = Encoding.UTF8; public static HttpWebResponse MultipartFormDataPost(string postUrl, string userAg... 阅读全文
摘要:
//post数据得到返回值 public string PostJsonToFenghuang(string postUrl, string referUrl, string data) { string result = ""; try { HttpWebRequest request = (Ht 阅读全文
摘要:
//读取txt文件内容 StreamReader NameIntxtSr = new StreamReader(文件路径, Encoding.Default); string NameIntxt = File.ReadAllText(文件路径, Encoding.Default); //写入txt文 阅读全文
摘要:
OpenFileDialog FileDialog = new OpenFileDialog(); string Path_Log = Path_Desktop + "/tvpost/log"; FileDialog.InitialDirectory = Path_Log; FileDialog.F 阅读全文
摘要:
if (System.Diagnostics.Process.GetProcessesByName("程序进程中的名称").ToList().Count > 0) if (System.Diagnostics.Process.GetProcessesByName("程序进程中的名称").ToList 阅读全文
摘要:
Directory.CreateDirectory(要创建的文件夹的路径); FileStream fs1 = new FileStream(Txt文件路径+文件名,FileMode.Create,FileAccess.Write); StreamWriter sw1 = new StreamWri 阅读全文
摘要:
System.Threading.Thread.Sleep(3000); 阅读全文
摘要:
StreamReader sr = new StreamReader(txt路径, Encoding.Default); string upStr = File.ReadAllText(txt路径, Encoding.Default); 阅读全文
摘要:
StringBuilder strBuilder = new StringBuilder(); strBuilder.Append("<?xml version=\"1.0\" encoding=\"UTF-8\"?"); strBuilder.Append("<ROBOT Version=\"2. 阅读全文
摘要:
public string PostJsonTo(string postUrl, string referUrl, string data) { string result = ""; try { HttpWebRequest request = (HttpWebRequest)WebRequest 阅读全文