[HELP]xD help with thsi plz

03/10/2009 22:15 taylor2846#1
um ok the binrys are geting boring so im gona go back to lotf xD i just want to no somting what is the best way of saving to a ini file
any help here any one??

i may try to code my own sources after i larn a lil more about c#
03/10/2009 23:15 PeTe Ninja#2
Open NotePad

File Save As...

Change TEXT to None

Then Do

Test.ini

and your done
03/10/2009 23:23 kinshi88#3
Ini.Write("Account", "Username", "OPisFag");
03/10/2009 23:25 unknownone#4
The popular choice is to use the Windows registry functions for the Windows ini format.
GetPrivateProfileString/Int/Section/Struct and WritePrivateProfileString/Section/Struct. (use [Only registered and activated users can see links. Click Here To Register...] for the C# definitions, or look at some existing sources here).

There are some already written managed Ini file APIs around the interwebz, but note that there's not any one strict standard for an "ini" file, so results may differ from the Windows registry format.

I've said plenty of times already, but I'll reiterate again. Ini files aren't the best solution for your task, whatever it is (They're outdated, unstandardised, unmaintainable crap). Use a database and SQL if you want a solution that you can work with.
03/11/2009 00:33 PeTe Ninja#5
Question here... how can you make something update ini files

like update the config file

i made a control panel for my source and i want it so i can do edit current rates they click on it and text or whatever comes up , and if they type in and click change it will update the ini files

can you help me with the updating ini files?
03/11/2009 00:54 kinshi88#6
Quote:
Originally Posted by PeTe Ninja View Post
Question here... how can you make something update ini files

like update the config file

i made a control panel for my source and i want it so i can do edit current rates they click on it and text or whatever comes up , and if they type in and click change it will update the ini files

can you help me with the updating ini files?
Alright, say the Config file looks like:

[Config]
DropRate=10


To change it, just write to it.
Ini.Write("Config", "DropRate", "20");
03/11/2009 03:55 taylor2846#7
xD i has a console comand like that lol