|
-
Feb 9th, 2003, 07:39 AM
#1
Thread Starter
New Member
Writing to an ini file
IS there an easy way to write a whole section to an ini file?
The code i have is
Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
retval = WritePrivateProfileString("ICM", "TransportDriver", "TCP/IP", "C:\_custom\appsrv.ini")
which will write "TransportDriver=TCP/IP" to the 'ICM' section in the ini file...I have about 23 values that I need to add to the 'ICM' section..is there an easy way to write multiple values to the same section in a ini file?
I am only a newbie, so apologies if this is a basic question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|