".class" is usually a Java extension. Why would you want to read it/load it in Visual Basic?
If you want to read the Java source, then you can read it as an ordinary text file using the filesystem object (you have to set a reference to the Microsoft Scripting Runtime).
[tt]
Dim fso As Scripting.FileSystemObject
Dim ts As Scripting.TextStream
Dim sTemp As String
Set fso = New Scripting.FileSystemObject
Set ts = fspenTextFile("C:\somefile.class", ForReading, False, TristateUseDefault)
While Not ts.AtEndOfStream
' Read a line from the file
sTemp = ts.ReadLine
' Then do something with it
Wend
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.