Hi guys, I'm makeing a Homework "tracker", which is basically a day planner. I need help making a settings file for the initial setup. I have a text box, a couple radio buttons, and one "begin" button. I need a way for the program to remember what choices were seleced. Prefereably a way to put a text file in the programs' root folder. Any help would be great.
Thanks in advance,
TSims11
TSims11 0 Newbie Poster
Recommended Answers
Jump to PostThen you need to have a file in the root directory and use the fstream library to read from it and write to it. When the user clicks one of the buttons or whatever, you'll have a function that is called and figures out what to read/write based on whatever …
Jump to PostAssuming this is an MS-Windows program you could put the settings in the registry, such as HKEY_CURRENT_USER/Software/<Your Program Name Here>. That way your program can get the settings regardless of where the program is on a computer.
All 6 Replies
VernonDozier 2,218 Posting Expert Featured Poster
TSims11 0 Newbie Poster
TSims11 0 Newbie Poster
VernonDozier 2,218 Posting Expert Featured Poster
TSims11 0 Newbie Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.