protected override void OnStart(string[] args) { WebClient webClient = new WebClient(); try { wtr = new StreamWriter(@"c:\SMS.txt"); wtr.WriteLine("sms Application"); string sms = webClient.DownloadString("http://www.google.com");//Sample Domain wtr.WriteLine("sms"); wtr.Close(); } catch (Exception ex) { wtr.WriteLine(ex.Message); wtr.Close(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)