Avatar of BMRA
BMRA

asked on 

INI FIle

Is there any better way of accessing infomration in INI file rather use of -
GetPrivateProfileString
.NET Programming

Avatar of undefined
Last Comment
Jorge Paulino
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

No, that's the better way to handle INI files. That's because INI files are not used any more in .NET (but you can do using API).
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

not really unless you want to open the file as a text file and parse it manually. See http://www.emoreau.com/Entries/Articles/2003/05/Applications-Settings-in-VBNet.aspx
Avatar of BMRA
BMRA

ASKER

what will be the best replacement for INI file now in vb.net?
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

I don't know what version are you using but in VS2005 or above (don't know the others) you have application settings, registry and XML files.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

>> the configuration fle

I call it application settings :-) but I thinks that's not available on .Net Framework 1.1
Avatar of BMRA
BMRA

ASKER

Am using VB.Net 2008 now. And started converting all our code from .Net 1.1 to 3.5
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Ok, then have a look on emoreau article.

I have looked for the tags you mentioned.
.NET Programming
.NET Programming

The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

137K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo