grazie mille per l'aiuto...
piccolo problema... nn mi fa vedere na mazza...

ho usato un openfiledialog per selezionare il file .ini...
al evento ok dell' o.fil.dia ho associato appunto il codice che mi hai suggerito...
ti posto tutto...

Public Class SelectDatabase


Private Function CheckStringa(ByVal tmp As String) As String
Dim s As String = ""
If tmp.Length > 0 Then
If tmp.Chars(0) = "["c And tmp.Chars(tmp.Length - 1) = "]"c Then
End If
End If
Return s
End Function
Private Sub btnNamefile_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNamefile.Click
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
txtNamefile.Text = OpenFileDialog1.FileName

Dim strRiga As String = ""
Using myFile As New IO.StreamReader(OpenFileDialog1.FileName)
Do Until myFile.EndOfStream
strRiga = CheckStringa(myFile.ReadLine)
If Not strRiga = "" Then
txtRisultato.Text = strRiga
MessageBox.Show(strRiga)
End If
Loop
End Using

End If
End Sub
End Class