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:
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.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); }
Thanx



LinkBack URL
About LinkBacks



let alone looping through the whole file.
but for some unforsaken reason I cant get System.Console.WriteLine(line) to display
how could I be so dense. Some times I surprise myself. If you hadn't of asked, I dont think it would have ever dawned on me.