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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:47:21+00:00 2026-05-16T04:47:21+00:00

I am needing to store easily parsable data in a file as an alternative

  • 0

I am needing to store easily parsable data in a file as an alternative to the database backed solution (not up for debate). Since its going to be storing lots of data, preferably it would be a lightweight syntax. This does not necessarily need to be human readable, but should be parsable. Note that there are going to be multiple types of fields/columns, some of which might be used and some of which won’t

From my limited experience without a database I see several options, all with issues

  • CSV – I could technically do this, and it is very light. However the parsing would be an issue, and then it would suck if I wanted to add a column. Multi-language support is iffy, mainly people’s own custom parsers
  • XML – This is the perfect solution from many fronts except when it comes to parsing and overhead. Thats a lot of tags and would generate a giant file, and parsing would be very resource consuming. However virtually every language supports XML
  • JSON – This is the middle ground, but I don’t really want to do this as its an awkward syntax and parsing is non-trivial. Language support is iffy.

So all have their disadvantages. But what would be the best when trying to aim for language support AND somewhat small file size?

  • 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-16T04:47:22+00:00Added an answer on May 16, 2026 at 4:47 am

    If you’re just using the basics of all these formats, all of the parsers are trivial. If CSV is an option, then for XML and JSON you’re talking blocks of name/value pairs, so there’s not even a recursive structure involved. json.org has support for pretty much any language.

    That said.

    I don’t see what the problem is with CSV. If people write bad parsers, then too bad. If you’re concerned about compatibility, adopt the default CSV model from Excel. Anyone that can’t parse CSV from Excel isn’t going to get far in this world. The weakest support you find in CSV is embedded newlines and carriage returns. If you data doesn’t have this, then it’s not a problem. Only other issue is embedded quotations, and those are escaped in CSV. If you don’t have those either, then its even more trivial.

    As for “adding a column”, you have that problem with all of these. If you add a column, you get to rewrite the entire file. I don’t see this being a big issue either.

    If space is your concern, CSV is the most compact, followed by JSON, followed by XML. None of the resulting files can be easily updated. They pretty much all would need to be rewritten for any change in the data. CSV has the advantage that it’s easily appended to, as there’s no closing element (like JSON and XML).

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

Sidebar

Related Questions

I'm needing to cache some data using System.Web.Caching.Cache . Not sure if it matters,
I'm needing to connect to a legacy database and pull a subset of data
I find myself needing to store public key certificates, and a single private key
I'm needing to check the differences between two XMLs but not blindly, Given that
I find myself needing to generate a checksum for a string of data, for
I would like to have Nexus (or Artifactory, we're not decided yet) store a
I'm needing to store a link structure. As a hierarchy, for example, x link,
Currently we store our address data like so: string suiteNumber (ie. unit number) string
I'm needing a fast method to read and store objects with pointers and pointers
What's the recommendation when needing to query an WF4 instance store for a collection

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.