Author: jingjie28 | Posted on: 4/21/2009 6:52:25 PM | Views : 273

Hi everyone, i have this text file. Inside the values are like:

28

29

30

I want to get the values inside, add them up and calculate the average then i encountered input string error. My coding is like that:
string text = System.IO.File.ReadAllText(@"C:\Inetpub\wwwroot\Final Year Project (Yap Yeng Thung 063527P)\Project\Website_GreenICT\Humidity.txt");
string text1 = text.Replace("\r\n", Go to the complete details ...