Posted By: log2
Reading from dat, or ini - 09/22/08 02:28
so far I only know of one way to read from an INI, or DAT, but I would like to know if there is a way to read from one of those files in a standard ini format..
In case you're not familiar with the standard ini format it looks something like this:
So in other words I'd like to know if I could specify the topic, then obviously specify the subject and receive the answer..
Or even if there is a way to do it without the topics would definitely help, so I can just call out the subject and receive the answer
Any help appreciated, thanks
In case you're not familiar with the standard ini format it looks something like this:
Quote:
[topic]
subject=answer
subject2=answer2
[topic2]
subject=answer
subject=answer
subject2=answer2
[topic2]
subject=answer
So in other words I'd like to know if I could specify the topic, then obviously specify the subject and receive the answer..
Or even if there is a way to do it without the topics would definitely help, so I can just call out the subject and receive the answer
Any help appreciated, thanks