Shoutbox

saving to a .ini - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: saving to a .ini (/showthread.php?tid=92126)

saving to a .ini by chrisb on 09-05-2009 at 08:06 PM

can anyone tell me how to save and load from a .ini file?


RE: saving to a .ini by tribbium on 09-06-2009 at 11:41 AM

From the best of my knowledge, .ini files are just plaintext files with a renamed extension. All you have to do is read and write from file as you would do for normal files, except formatting it as the 'standard' dictates.

outlined here: http://en.wikipedia.org/wiki/INI_file

It isn't anything really static, its just convention and really makes no difference =p.


RE: saving to a .ini by Mnjul on 09-06-2009 at 12:57 PM

Well, using functions like WritePrivateProfileString should save you efforts that you have to spend with "reading and writing as normal text files".


RE: saving to a .ini by chrisb on 09-08-2009 at 02:34 PM

I know what an ini file is, I want an example of how to write a single variable to an ini file. and also how to read it.


RE: saving to a .ini by ArkaneArkade on 09-08-2009 at 03:07 PM

OK, man, cool.  All anybody means is there are other ways that are better than using an ini, but obviously sometimes there are needs for other methods.

This should hopefully give you what you need: felipEx's reply to [Request] Read, write and delete from/to ini file