Maybe you want to use a TryParse to avoid throwing exceptions too?Code:string tfile = System.IO.File.ReadAllText(@"test.txt").Trim(); string var = "test"; if (Convert.ToDouble(tfile) > Convert.ToDouble(var)) { } else if (Convert.ToDouble(tfile) < Convert.ToDouble(var)) { } else //Equal { }




< Please
if this helped you out. Any kind of thanks is gladly appreciated > 
Reply With Quote