By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

Properties File in .Net Similar to Java Properties file

P: n/a
Hi All,

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair

Thanks in advance
Sachin
Nov 16 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


Sachin wrote:

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair


..NET is using XML for such stuff so within the .NET SDK there is support
to store and read application settings from XML configuration files.
If you have a file in a different format perhaps created by some
non-.NET application then you would need to write your own parser or
look around in .NET code repositories on the web.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Nov 16 '05 #2

P: n/a
Sachin wrote:
Hi All,

Is there any class which provides support file properties file similare to
java Properties?

Basically I looking for reading/writing properties file in C# of format

attrName=Value pair


Check the documentation on App.Config and the appSettings section.
Unlike java, a .NET app does not automatically parse your config file.

--
There are 10 kinds of people: those who understand binary and those who
don't.
Nov 16 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.