you could hand over the file name in the call of your class.
just create an overloaded New procedure like
Public Sub New (byval _file as strng)
'your code'
End Sub
and you call this calss just like
dim myClass as New Class1(_myfile)
Reputation Points: 208
Solved Threads: 168
Practically a Master Poster
Offline 692 posts
since Jun 2009