The type or namespace name 'Text Reader' could not be found (are you missing a using directive or an assembly reference?)" what dose this error mean??"
The type or namespace name 'Text Reader' could not be found
Collapse
X
-
Tags: None
-
Notice how all your code is contained within a namespace?
The compiler tried to figure out what your 'text reader' is supposed to be. Is it a namespace? Is it a type? The compiler failed to recognize it as either.Code:Namespace MyProgramApplication { public class Form1 : form { // Some code here for your form } } -
System.IO.TextR eader
You have to add a using statement to the top of your code to use a TextReader object.
TextReader is part of the System.IO namespace, which is not included by default on most generated templates.
Add this line of code at the top with all the other using statements:
Code:using System.IO;
Comment
-
Comment