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

  • Home
  • SEARCH
  • 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 6320323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:57:01+00:00 2026-05-24T15:57:01+00:00

My program asks to save to a configuration file every time the user exits

  • 0

My program asks to save to a configuration file every time the user exits from the program, even if there were no changes made to the various input controls. Now, I am being asked to only to save when changes are made. A lot of times the user will only open up the configuration file to only view the parameters and they get worried when it asks to save changes when they didn’t make any. I was in the process of modifying every control’s “change event” to update a global change flag. After the 10th control out of 40, I thought there must be a better way. Now I am looking for a strategy or design pattern to implement this.

  • 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-24T15:57:02+00:00Added an answer on May 24, 2026 at 3:57 pm

    I am not sure what format your configuration is stored in, but here is the general idea of what I would do.

    When the program closes, serialize your configuration to a temporary variable or file and compare it with the saved configuration. If they are different, prompt the user.

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

Sidebar

Related Questions

I'm making a program that asks for an integer from the user, it then
/* * * Hangman.java * The program asks the user to choose a file
This program takes 2 numbers from user input, asks them whether they'd like to
I'm working on a Serpinski triangle program that asks the user for the levels
The logic of the program is quite clear but when it asks the user
I want to write a program in C or C++ that asks to user
I've written a Binary Tree program that asks the user questions to learn about
I'm thinking about writing a program that asks the user to think of an
I need help here in a multiplication table program. The program asks the user
So i had to write a program that asks for a user input (which

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.