Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6096953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:59:14+00:00 2026-05-23T12:59:14+00:00

This is my first time working with config files, so I am not sure

  • 0

This is my first time working with config files, so I am not sure which direction to go. I have looked around but have not found any specific answers.

I have a some configuration settings, namely a list of integers, a list of custom objects and a single integer. At the moment, I am pursuing XML for my config file, I am using serialisation to store and read my list of custom objects. However, I am not sure of the convention or the possiblitly of storing the other settings in the same file. Ideally I would like it to be a single file configurable via a GUI, can I acheive this with XML?

How can I store and read my other list, and single int independently? i.e. refer to that part of the file? – does serialisation allow for this or do I need multiple files? Would that be bad practice?

Should I use a differnt type of config file, or use settings in addition to my XML file? Is it bad practice to have more than one mode of configuration?

Many thanks for any advice you can provide!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:59:14+00:00Added an answer on May 23, 2026 at 12:59 pm

    I used to store configuration information in app.config file (not separate). However working for big companies I found that on production you don’t have access to app.config file (only IT personal can have access to production). So if you need to change configuration you need to go through change request, and it takes time. So in this case I started to store my configuration information in database. This way I can change at any time and I don’t need go through change request.

    About separate xml or app.config. I would use separate config file in case if you have a lot of config information, or information that is structured/nested, but most of the time (99%) I would use just app.config for this.

    Check this out how to store int array in application settings

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is my first time posting here, I have a question which I have
This is my first time working with file i/o in java, and it's not
This is my first time with Web services. I have to develop web services
This is my first time working with a webservice and I tried looking up
This is my first time working with python. I'm trying to create a dictionary
This is the first time I am working with struts (1.2) In my jsp
This is my first time working on a secure website. It's for a pet
This is my first time working with VB. I'm mostly used to working in
This is my first question on StackOverflow.com and I'm not sure if this is
I have createn an app, this app can be found here Everything is working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.