Properties File in .Net Similar to Java Properties file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sachin

    Properties File in .Net Similar to Java Properties file

    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


  • Martin Honnen

    #2
    Re: Properties File in .Net Similar to Java Properties file



    Sachin wrote:

    [color=blue]
    > 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[/color]

    ..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

    Comment

    • Frank Oquendo

      #3
      Re: Properties File in .Net Similar to Java Properties file

      Sachin wrote:[color=blue]
      > 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[/color]

      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.

      Comment

      Working...