Reading & writing ini-files

Jocbe

New member
Joined
Dec 28, 2008
Messages
2
Programming Experience
Beginner
Hi,
I am using Visual Basic .net standard version 2003. I couldn't find a solution that works until now, so I hope you can help me:
I want to read / write data from / into ini-files. All the solutions I found so far created errors and wouldn't work.

Thank-you in advance,
Jocbe
 
An INI file is simply plain text so all you need is a StreamReader or a StreamWriter. That said, INI files obviously have a specific format so you need to test a line to see if it's a section header but that's about the hardest thing it involves.

Also, there are all sorts of articles on the web explaining how to do this so if you've tried them and none of them work then I'd suggest that it's you doing something wrong rather than ALL of them being broken. Maybe you should show us one of the methods that you've tried and tell us exactly what happened when you executed it.
 
Back
Top