Properties File in .Net Similar to Java Properties file

  • Thread starter Thread starter Sachin
  • Start date Start date
S

Sachin

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
 
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.
 
Sachin said:
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.
 
Back
Top