You should try searching in the .NET help for 'Open File' or 'Visual Basic 6 differences' and it will give you an example. As for the App.path there is no App object in .NET use: Application.StartUpPath instead.
Although I would say ditch the INI file and use XML instead, you can load it into a dataset and make things much easier.
Here is a sample of how to read a file just in case (Although the xml way is better):
VB Code:
Dim fs As System.IO.FileStream = New System.IO.FileStream(System.IO.Path.Combine(Application.StartupPath, "Main Config.ini"), IO.FileMode.OpenOrCreate)
Dim sr As New System.IO.StreamReader(fs)
Dim contents As String = sr.ReadToEnd
sr.Close()
fs.Close()
sr = Nothing
fs = Nothing
You could also shorten this if you put some Imports at the very top outside of the class:
VB Code:
'At the top
Imports System.IO 'works kind of like a giant With..End WIth
Dim fs As FileStream = New FileStream(Path.Combine(Application.StartupPath, "Main Config.ini"), FileMode.OpenOrCreate)'Opens file
Dim sr As New StreamReader(fs)'here is an object to read it
Dim contents As String = sr.ReadToEnd'reads the whole file to the string
sr.Close()' clean up
fs.Close()
sr = Nothing
fs = Nothing