hello... i get the message:
An unhandled exception of type 'System.NullReferenceException' occurred in attempt.exe
Additional information: Object reference not set to an instance of an object.
when executing this:
string blockOne = null;
blockOne = sr.ReadLine();
while ((blockOne.StartsWith(" 2A3:") == (false)));
so im trying just to print all lines of a text file until i get to one starting with " 2A3:". The correct lines are output to the console, but then the execution halts.... i am a real novice!! any help please?