its been awhile since i used ini's and i just got mmf2 a few weeks ago.
i want to save values to an ini but i just cant seem to.
i followed numerous tutorials and none of them work.
and i like how "popcorn"'s tutorial just say "if it doesnt work you did something wrong". no shit?
well i did it like 3 times and it hasnt worked yet. and i made sure everything was correct.
im thinking its a vista problem cause vista is a bitch and doesnt let you save or create files in the c:\ directory
Yeah, it's possible that it's a Vista problem, though I believe it only blocks access to C:\windows\ and C:\Program Files\ as far as I know. The INI object itself should be fairly easy to use. Just select a file, read/write and you're done. What exactly are you trying to do? It's hard to tell what you're doing wrong without seeing your code.
well it works if the .ini file already exists and i can use it easily enough, but shouldnt the .ini extension create the ini if it doesnt exist?
thats what im trying to do. it wont create one.
all im doing right now is saving a single value.
set group >> "group1"
set item >> "item1"
set value >> 10
I think you have to select a filename first, otherwise it won't know what to call your INI file, and where to place it. Also, make sure you're using a path relative to your application directory (ie, use appdir$ and appdrive$).
set file >> appdrive$ + appdir$ + "file.ini"
set group >> "group1"
set item >> "item1"
set value >> 10
Oh yeah, because if you only give it a filename, and not a full path ("file.ini" for example), it will try and put it in C:\windows\ or somewhere instead, and that probably won't work on Vista.