Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] Read and Create INI files

Author
Message
Sasuke
18
Years of Service
User Offline
Joined: 2nd Dec 2005
Location: Milton Keynes UK
Posted: 6th Aug 2009 20:04
Hi guy's, quickly put together a user friendly system to create and read INI files. Here's an example of an INI file created with this system:




Now here's how easy that was to make using the system:




And finally, here's how easy it is to read them:



I've also added error codes for each variable just in case there are any read errors and will be working on a validate INI function soon. So here the code and enjoy:



Note: I dumped the code in a txt file and it messed the indentation up, but give me a sec and i'll fix soon, i'll also add comments aswell in the future version.

A dream is a fantasy, if you achieve that fantasy it was never a dream to begin with.
Colonel_Klink
17
Years of Service
User Offline
Joined: 20th Dec 2006
Location: Within the dark recesses of my mind
Posted: 26th Aug 2009 13:17
Hi Sasuke
This is what I've been attempting to do. Thanks.


Oh my gosh! He's wearing Full Metal Pyjamas!
--------------------------------------------
Virtual Movie Studio forum: http://www.metalplateproductions.com/vms/

Login to post a reply

Server time is: 2024-05-04 22:33:06
Your offset time is: 2024-05-04 22:33:06