2006-08-12, 11:28 AM
I'm coding with VB6
I've been surfing everywhere and found many ways to read and write to ini files, but all of the ways require a key:
I want to be able to refer to just a Value without a key...
Why?
For example, comskip.ini has values, I'd like to read directly, and there's no Keys. If I add a key to the top, the comments that are 'semi-coloned out' are also retrieved...
I know that another way for me to read and write to text files, are to read the whole thing into a buffer, read/edit the value, and then write it back.
Before I crank on that one, is there an easier way?
I was also wanting to read write values in the config.xml. I suspect there's APIs that will help. And of course there's the messy, 'read text file, re-write new text file' method, but I can't find much on this..
I've been surfing everywhere and found many ways to read and write to ini files, but all of the ways require a key:
Code:
[KEY1]
Value1=thing
Value2=etc
I want to be able to refer to just a Value without a key...
Why?
For example, comskip.ini has values, I'd like to read directly, and there's no Keys. If I add a key to the top, the comments that are 'semi-coloned out' are also retrieved...
I know that another way for me to read and write to text files, are to read the whole thing into a buffer, read/edit the value, and then write it back.
Before I crank on that one, is there an easier way?
I was also wanting to read write values in the config.xml. I suspect there's APIs that will help. And of course there's the messy, 'read text file, re-write new text file' method, but I can't find much on this..
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]