Anyone know how to do this?
WritePrivateProfileString (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/writeprivateprofilestring.asp)
Or you could make your own function for this. You could append all lines (or characters) to an array and inside the array edit out any lines that you must. Then for each line (or character), write them back to the file.
...which would probably be entirely less efficient than WritePrivateProfileString.
Would also defeat the purpose of an INI file (prevent writing to a file yourself, as opposed to having settings which are editable whenenver)
wtf, VB6 is telling me that Null is invalid, and yet it says I can do it in MSDN!
>confusion
You should use 0 instead of vbNull and pass it as an integer.
Or use vbNullString like you probably should be?