Home » VB.NetRSS

Reading and writing to ini files in Visual Basic 2010

I am trying to search for snippet for reading and writing ini files in visual basic .net. anyone has any idea?
 

3 Answers Found

 

Answer 1

The below Class was written several years ago but it should work in VB 2010:

http://www.mentalis.org/soft/class.qpx?id=6

 

 

Answer 2

Hello, I suggest to take for this a newer technique


http://msdn.microsoft.com/en-us/library/saa62613(VS.80).aspx

The My.Settings object provides access to the application's settings and allows you to
dynamically store and retrieve property settings and other information for your application.
For more information, see Managing Application Settings.

regards Ellen

 

Answer 3

Hello teocs,

Thanks for your post.

The above replies have given you helpful suggestions. Here are two links about reading  and writing  INI files. Please check. Hope them helpful.

1. http://dog-net.org/content/development/vb-net/reading-and-writing-ini-files/  (Reading and Writing INI-Files)

2. An article describes a class library for reading/writing XML files, config files, ini  files, or the Registry using one simple interface.
http://www.codeproject.com/KB/cs/readwritexmlini.aspx
(Read/Write XML files, Config files, INI files, or the Registry)

It is in C#, you could make a convertion by
Convert C# to VB.NET: http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx

If you have any problems, please feel free to follow up.

Best regards,
Liliane
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg@microsoft.com


Please mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. Thanks
 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter