.NET 2.0 System.IO Syntax changes required by Microsoft!

This drives me nuts.  I come across functions that are no longer supported often in ASP.NET 2.0 by getting messages, though nice, in VS 2005.  Ok, well, then I have to look these up to try to find out what the heck to replace them with.  I wish Microsoft would just bring you to the page automatically on the net that refers to the change that is required because I waste many hours trying to find this stuff on BOL.

Anyway, one example, which is this article by MS on System.IO (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconReadingTextFromFile.asp)

shows this below:

Imports System
Imports System.IO

Class Test
    Public Shared Sub Main()
            ' Create an instance of StreamReader to read from a file.
            Dim sr As StreamReader = New StreamReader("TestFile.txt")
            Dim line As String
            ' Read and display the lines from the file until the end
            ' of the file is reached.
                line = sr.ReadLine()
            Loop Until line Is Nothing
        Catch E As Exception
            ' Let the user know what went wrong.
            Console.WriteLine("The file could not be read:")
        End Try
    End Sub
End Class

When I try this code in my VS 2005 project, I get an error saying "Input" is no longer supported and that you have to use "LineInput".  I found info on LineInput here:  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctlineinput.asp

I guess what I'm asking is there an official .NET 2.0 page just for System.IO I should be referencing here so that I don't have to go through this, or am I just stuck with having to research these darn syntax changes every time Microsoft decides to change it in new .Net versions?

I get pretty frustrated when I'm spending half my time looking up syntax from ASP 1.1 to 2.0
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSenior Systems and Integration DeveloperCommented:
The .Net 2 class library reference can be found here:


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dba123Author Commented:
how do I know this is .NET 2.0, microsoft doesn't even tell you anywhere on the page as far as I can see!
Carl TawnSenior Systems and Integration DeveloperCommented:
Because anything that has a url or msdn2 is .Net2
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.