Sub SaveIni(fPath As String,filename As String)
Return
'WriteIni(mykey As String,myvalue As String,fPath As String,filename As String)
'To write record HOST=127.0.0.1 to ARC.ini, make this Call:
'WriteIni("HOST","127.0.0.1",File.DirDefaultExternal,"ARC.ini")
If Not(File.Exists(fPath,filename)) Then File.WriteMap(fPath, filename, Map1) 'to create it if not exist
Map1 = File.ReadMap(fPath,filename)
Map1.Put("ServerIP", ServicesvrIP)
Map1.Put("ServerPort", ServicesvrPORT)
Map1.Put("LocalID", ServiceARCid)
Map1.Put("RingToneToUse", SelectedTone)
Map1.Put("PasswordLockToUse", LockoutPassword)
File.WriteMap(fPath, filename, Map1)
End Sub