Ciao ed intanto grazie per i suggerimenti, volevo chiedervi, e di questo vi chiedo scusa, il fatto che ho deciso da poco di riavvicinarmi a VB.. Conoscevo abbasta bene la versione 6, ma con questa non ho mai lavorato. In sostanza, stavo provando alcuni dei suggerimenti, ma stò incontrando qualche difficoltà, del tipo che non sò come richiamare un evento di una classe.
es.
Class Test
Public Shared Sub Main()
Try
' 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.
Do
line = sr.ReadLine()
Console.WriteLine(line)
Loop Until line Is Nothing
sr.Close()
Catch E As Exception
' Let the user know what went wrong.
Console.WriteLine("The file could not be read:")
Console.WriteLine(E.Message)
End Try
End Sub
End Class
Presa dall'msdn, non sò c0me richiamarla all'interno dell'applicazione VB per testarne il funzionamento.