i have this function to read from text file..the problem is some times it read numbers and retun it as string although i want to return it as integer..any clue how to get this done
Code:
Public Function IniReadValue(ByVal Section As String, ByVal Key As String) As String
Dim temp As New StringBuilder(255)
Dim i As Integer = GetPrivateProfileString(Section, Key, "", temp, 255, Application.StartupPath + file.txt)
Return temp.ToString
End Function