I am trying to display information back to my interface and dont know how to...I am really new to all this and I am stuck. What I was doing is:
Code:
try
{
using (System.IO.StreamReader sr = new System.IO.StreamReader(@"C:\Code\somedoc.txt"))
{
String line;
line = sr.ReadLine();
System.Console.WriteLine(line);
sr.Close();
}
}
catch (Exception ex)
{
Console.WriteLine("The file could not be read:");
Console.WriteLine(ex.Message);
}
The problem is...it is not displaying anything on the interface...at the moment I dont care where on the interface it displays the result, I just want to make sure it displays.....Can anyone help.
Thanx