Write and read from an INI
Write and read from an INI
API Declarations
'WritePrivateProfileString
'GetPrivateProfileString
'I cant get them because i am at school!
'C YA
Rate Write and read from an INI
(2(2 Vote))
Function ReadInI (strSectionHeader As String, strVariableName As String, strFileName As String) As String
Dim strReturn As String
strReturn = String(255, Chr(0))
ReadINI = Left$(strReturn,
GetPrivateProfileString(strSectionHeader, ByVal strVariableName, "",strReturn, Len(strReturn), strFileName))
End Function
Function WriteINI(strSectionHeader As String, strVariableName As
WriteINI = WritePrivateProfileString(strSectionHeader,strVariableName, strValue, strFileName)
End Function
Write and read from an INI Comments
No comments yet — be the first to post one!
Post a Comment