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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:49:36+00:00 2026-06-18T17:49:36+00:00

I am starting work on a new piece of software that will end up

  • 0

I am starting work on a new piece of software that will end up needing some robust and expandable file IO. There are a lot of formats out there. XML, JSON, INI, etc. However, there are always plusses and minuses so I thought I would ask for some community input.

Here are some rough requirements:

  1. The format is a “standard”…I don’t want to reinvent the wheel if I don’t have to. It doesn’t have to be a formal IEEE standard, but something you could Google and get some information on as a new user, may have some support tools (editors) beyond vi. (Though the software users will generally be computer savvy and happy to use vi.)
  2. Easily integrates with C++. I don’t want to have to pull along a 100mb library and three different compilers to get it up and running.
  3. Supports tabular input (2d, n-dimensional)
  4. Supports POD types
  5. Can expand as more inputs are required, binds well to variables, etc.
  6. Parsing speed is not terribly important
  7. Ideally, as easy to write (reflect) as it is to read
  8. Works well on Windows and Linux
  9. Supports compositing (one file referencing another file to read, and so on.)
  10. Human Readable

In a perfect world, I would use a header-only library or some clean STL implementation, but I’m fine with leveraging Boost or some small external library if it works well.

So, what are your thoughts on various formats? Drawbacks? Advantages?

Edit

Options to consider? Anything else to add?

  • XML
  • YAML
  • SQLite
  • Google Protocol Buffers
  • Boost Serialization
  • INI
  • JSON
  • 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-18T17:49:38+00:00Added an answer on June 18, 2026 at 5:49 pm

    For my purposes, I think the way to go is XML.

    1. The format is a standard, but allows for modification and flexibility for the schema to change as the program requirements evolve.
    2. There are several library options. Some are larger (Xerces-C) some are smaller (ezxml), but there are many options, so we won’t be locked in to a single provider or very specific solution.
    3. It can supports tabular input (2d, n-dimensional). This requires more parsing work on “our” end, and is likely the weakest point for XML.
    4. Supports POD types: Absolutely.
    5. Can expand as more inputs are required, binds well to variables, etc. through schema modifications and parser modifications.
    6. Parsing speed is not terribly important, so processing a text file or files is not an issue.
    7. XML can be programmatically written just as easily as read.
    8. Works well on Windows and Linux or any other OS that supports C and text files.
    9. Supports compositing (one file referencing another file to read, and so on.)
    10. Human Readable with many text editors (Sublime, vi, etc.) supporting syntax highlighting out of the box. Many web browsers display the data well.

    Thanks for all the great feedback! I think if we wanted a purely binary solution, Protocol Buffers or boost::serialization is likely the way that we would go.

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

Sidebar

Related Questions

We are starting a rather complex new project at work, and need some sort
I'm starting work on a new embedded Linux project. The project will consist of
I'm fairly new to iOS development, and I'm starting work on an App that
I'm starting a new project in plain C (c99) that is going to work
I'm starting a new project and setting up the base to work on. A
I'm starting work on some simulations using MPI and want to do the programming
I'm starting some work on a rather large JS project and want to make
I'm starting to work on a small script that takes a string, counts the
Starting to work on a new project... RESTful layer providing services for social network
I'm on the cusp of starting work on a new webapp. Part of this

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.