C#.NET Reload configuration settings from an external config file during run-time.

Posted by user569850 on Stack Overflow See other posts from Stack Overflow or by user569850
Published on 2011-02-08T15:23:33Z Indexed on 2011/02/08 15:25 UTC
Read the original article Hit count: 168

I'm writing a game server in C#.Net and would like to reload or refresh settings from a config file while the server is running.

Ideally I would like to save the settings in an XML file, have the ability to edit the file while the game server is running and then send the server the command to reload the settings from the file.

I know I can use a database to do this as well, but the game server is fairly small and I think it would be more practical to just save settings in a flat-file. I will have file-level access to the machine the server will run on.

What should I use?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET