Advertisement
2002ASP Files/ File Controls/ Input/ Output #2751

How To Write To a INI File

This VERY Simple 5 Line Code Writes To a INI File! Enjoy!

AI

KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Quellcode
original-source
Public Sub iniWrite(sFileName As String, sKey As String, sSection As String, ByVal sValue As String)
Dim iW As String
iW = WritePrivateProfileString(sSection, sKey, sValue, sFileName)
End Sub
Private Sub Command1_Click()
iniWrite "C:\Windows\Desktop\File.ini", "Neat", "Pretty", "Huh?"
End Sub
'Have Fun!
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine