Recently I was creating an application which in short works as a sort of webspider. In other words – non GUI application fetching pages from some intranet applications (doesn’t matter, could as well has been public Internet pages).
It worked pretty well, I was using the simplest code possible
WebRequest webRequest = WebRequest.Create(strTheUrl);
WebResponse webResponse = webRequest.GetResponse();
string sTxt = [...]
Another real life experience. Once a long time ago I wrote a simple Windows GUI application where users could enter float values.
Some users preferred using “,” as delimiter and some other “.”, i.e my application neededto convert strings like “122,12″ and “122.12″ to a double value. Also blanks – which should be treated as 0.0.
As [...]
