C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-14-2004, 03:06 PM   #1
Registered User
 
Join Date: Jul 2003
Posts: 53
Configuration file

I need to have a configuration file to keeps settings for a application that I'm writing. What's the best / standard way of having a config file. Current I'm using just a .txt file, I'll need to use values in the config file multipe times and don't want to rea the file everytime. Can anyone offer some help.

JMD
nbo10 is offline   Reply With Quote
Old 05-17-2004, 10:34 AM   #2
Registered User
 
Join Date: Nov 2001
Posts: 1,348
C# features several solutions for saving/restoring settings.

One solution is simply save the settings to the module directory. Another solution is the registry. You can also get Windows default saving directory and store the settings there. The latest solution is called isolated storage. You pass it the level of seperation such as assembly, username, domain, and roaming. It saves and restores the settings without you needing to know where.

Kuphryn
kuphryn is offline   Reply With Quote
Old 05-18-2004, 09:07 PM   #3
Registered User
 
Join Date: Jul 2003
Posts: 53
I tried creating a XML .config file. I don't get any error's but the string that holds the Key value is null. Does anyone have an example program? Thanks

JMD
nbo10 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A development process Noir C Programming 32 12-19-2009 10:15 AM
opening empty file causes access violation trevordunstan C Programming 10 10-21-2008 11:19 PM
Need Help Fixing My C Program. Deals with File I/O Matus C Programming 7 04-29-2008 07:51 PM
System drdroid C++ Programming 3 06-28-2002 10:12 PM
Need a suggestion on a school project.. Screwz Luse C Programming 5 11-27-2001 02:58 AM


All times are GMT -6. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22