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 9048443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:09:28+00:00 2026-06-16T12:09:28+00:00

I am a new programmer working on a program that contains a list of

  • 0

I am a new programmer working on a program that contains a list of recipes which can be searched and then generate menu from a selected commonality.

My initial thought has been to use a configuration file to store the data (I am using configobj for python). The problem here is that a value (e.g. ingredients = []) will occur several times.

Is there a way to separate different configurations within a single file? something like

Recipe
{
    value0 = 
}
Recipe 2
{
    value0 =
}

I am trying to avoid having ascending values (value1(n),value1(n+1)) or using a config file for each recipe.

Alternatively if this is not possible, could someone suggest an alternative file structure, including those not using configobj.

  • 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-06-16T12:09:29+00:00Added an answer on June 16, 2026 at 12:09 pm

    If you want human-editable ini-like format:

    [Recipe]
    value0 = ..
    
    [Recipe2]
    value0 = ..
    

    If the file is used to exchange data between programs then you could use (also human-readable) json format:

    { "Recipe": { "value0": ".." }, "Recipe2": { "value0": ".." } }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I am new programmer.. presently working on iphone.... I know that in iphone
I'm a new Python programmer who is making the leap from 2.6.4 to 3.1.1.
I'm a pretty new C# programmer. I was wondering if someone can fill me
I always believed that when starting to learn a new programming language programmer must
So, I am a fairly new programmer working towards an undergraduate Comp Sci degree
Possible Duplicate: difference between throw and throw new Exception() I'm a programmer working on
I have a very old, very very large, fully working, C program which plays
I'm working on a mathematical model that uses data generated from XFOIL, a popular
I'm working with another programmer and he recently sent me a new JSON-based API
I'm a C/C++/Java programmer working with JavaScript. I'm trying to write a function that

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.