hi,
to read from a notepad i hv used the following code.
bt the problem is, it will not read the next line.
so how to read line by line.....
using (StreamReader sr = new StreamReader("c: \\key.txt"))
{
string s = sr.ReadLine();
//etc.
Console.WriteLine(s);//its showing the output
string[] variables = s.Split(' ');
float fvalue = float.Parse(variables[0]);
Console.WriteLine(fvalue);
}