2009-01-30, 10:14 PM
Just so I'm not reinventing the wheel...
I'm getting in deep into VB.net ( I have Visual Studio, and I'm learning to read C# too, but that's just so I can finally understand the code examples...)
I'd like to be able to read and write INI files and other text files used by other 3rd part programs like Comskip.
I'd like to be able to write something like
x = INIQuery ([comskip.ini filepath], "live_tv")
And get x = 1 or 0...
Here's a chunk of that ini
I had to write something quite ugly for VB6 but had to work around dealing with crlf spaces and tabs existing.
Does someone have a sample of how they create/read/write values for file like this?
---
BTW, I have no idea why it took me so long to get into .net. Everything seems to be sooooo much easier... Just playing with XML right now....
I'm getting in deep into VB.net ( I have Visual Studio, and I'm learning to read C# too, but that's just so I can finally understand the code examples...)
I'd like to be able to read and write INI files and other text files used by other 3rd part programs like Comskip.
I'd like to be able to write something like
x = INIQuery ([comskip.ini filepath], "live_tv")
And get x = 1 or 0...
Here's a chunk of that ini
Code:
sage_framenumber_bug=0
sage_minute_bug=0
live_tv=1 ; set to 1 if you use parallelprocessing and need the output while recording
live_tv_retries=4 ; change to 16 when using live_tv in BTV, used for mpeg PS and TS
dvrms_live_tv_retries=300 ; only used for dvr_ms
I had to write something quite ugly for VB6 but had to work around dealing with crlf spaces and tabs existing.
Does someone have a sample of how they create/read/write values for file like this?
---
BTW, I have no idea why it took me so long to get into .net. Everything seems to be sooooo much easier... Just playing with XML right now....
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]