G
Guest
Hello,
I'm completely new to Visual Basic, and am using Visual Basic 6.0. I'm
trying to make an application that reads in a text file, and then writes some
stuff to it. I have all of my forms made, and I made a class called
MyStreamReader. This is all the code I have in the class so far:
Private Sub Class_Initialize()
Imports System.IO
Private fileIn As StreamReader = New StreamReader("H:\test.txt")
End Sub
I get an expected end of statement on the '=' when I do this. Is there
something I'm leaving out? Any help would be greatly appreciated, as I
haven't been able to find it on Microsoft's site. All of the examples I
found look similar to what I've written.
I'm completely new to Visual Basic, and am using Visual Basic 6.0. I'm
trying to make an application that reads in a text file, and then writes some
stuff to it. I have all of my forms made, and I made a class called
MyStreamReader. This is all the code I have in the class so far:
Private Sub Class_Initialize()
Imports System.IO
Private fileIn As StreamReader = New StreamReader("H:\test.txt")
End Sub
I get an expected end of statement on the '=' when I do this. Is there
something I'm leaving out? Any help would be greatly appreciated, as I
haven't been able to find it on Microsoft's site. All of the examples I
found look similar to what I've written.