Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Config File Usage?

configuration system.configuration config file file file handling

  • Please log in to reply
2 replies to this topic

#1 Chuckles

Chuckles

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 08 November 2013 - 12:16 AM

What are experienced folks doing to read configuration information from files?

I did not see a way to use the System.Configuration bits, and I would like to set a destination address for sending output via a file to avoid hardcoding.

 

All ideas appreciated.

 

 

Thanks.

 

 

(.NET MF2, NetDuino Plus 2, Visual Studio 2012)



#2 stotech

stotech

    Advanced Member

  • Members
  • PipPipPip
  • 143 posts
  • LocationAustralia

Posted 08 November 2013 - 12:32 AM

I might have miss understood the question but just in case it helps I'll chip in. I store config files on the SD Card by writing a csv to it. Then reading it and splitting it into an int array. I can store a ton of variables that way I want to be available after a reboot. I doubt that's what your asking about but you never know. Might help someone.

 

Grant



#3 Chuckles

Chuckles

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 08 November 2013 - 01:19 AM

Grant, that does help a bit.... In the non-Micro .NET Framework, the System.Configuration.ConfigurationManager class wraps a well-defined XML structure for containing strongly typed key/value pairs of data, and other meta-info. If you have written something yourself then there is probably no baked-in equivalent to ConfigurationManager, so I will write something myself, as you have already done.

 

 

Thanks.







Also tagged with one or more of these keywords: configuration, system.configuration, config file, file, file handling

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.