xml file vs .config
-
I have made a simple game and for the name and score/top score, number of turns etc. of the players, I have used an xml file of my own. Would I have any reason to store all that information in the .config file, making my own sections or key value pairs in appSettings. Or is the .config file is only useful when we are talking configuration? I have read many articles on codeproject/msdn etc., but still confused.
-
I have made a simple game and for the name and score/top score, number of turns etc. of the players, I have used an xml file of my own. Would I have any reason to store all that information in the .config file, making my own sections or key value pairs in appSettings. Or is the .config file is only useful when we are talking configuration? I have read many articles on codeproject/msdn etc., but still confused.
If you want to save the user data like High scores you can use xml.But if you want to use any application settings like path or something you are using in some code behind classes you can use configuration file. For example if you have an upload path in server you can use appSettings. :)
Arun Jacob http://codepronet.blogspot.com/
-
I have made a simple game and for the name and score/top score, number of turns etc. of the players, I have used an xml file of my own. Would I have any reason to store all that information in the .config file, making my own sections or key value pairs in appSettings. Or is the .config file is only useful when we are talking configuration? I have read many articles on codeproject/msdn etc., but still confused.
humayunlalzad wrote:
Would I have any reason to store all that information in the .config file
No. I always roll my own.
-
I have made a simple game and for the name and score/top score, number of turns etc. of the players, I have used an xml file of my own. Would I have any reason to store all that information in the .config file, making my own sections or key value pairs in appSettings. Or is the .config file is only useful when we are talking configuration? I have read many articles on codeproject/msdn etc., but still confused.