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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:31:34+00:00 2026-05-16T20:31:34+00:00

I am looking for a method to parse readable (i.e., not binary) data files

  • 0

I am looking for a method to parse readable (i.e., not binary) data files with sections.

I had been using ConfigObj to read config files (INI files?), but I ran into a problem with multi-line lists. Specifically, ConfigObj does not allow list members to contain carriage returns. In other words, the following fails to parse:

[section]
data = [(1, 0.1),
        (2, 0.2),
        (3, 0.3)]

Removing the carriage returns fixes the problem

[section]
data = [(1, 0.1), (2, 0.2), (3, 0.3)]

Obviously, I could just use this simple fix, but the readability suffers significantly when the data extends beyond a single line. Is there an alternate config-file parser that would work here?

Alternatively, are there parsers for csv files with sections? For example, something that could parse

[data1]
1, 0.1
2, 0.2
3, 0.3

[data2]
1, 0.1
2, 0.2
3, 0.3

I considered JSON files but I wasn’t quite happy with the look of the data files.

NOTE: the 1, 2, 3 columns are just for illustration: it is not my intent to save row numbers.

  • 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-16T20:31:35+00:00Added an answer on May 16, 2026 at 8:31 pm

    Take at look at YAML files. There is a Python module called pyyaml to read those. I find YAML to be pretty readable.

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

Sidebar

Related Questions

I'm looking for the best method to parse various XML documents using a Java
I am looking for a method to grab XML files and parse them as
I'm looking for a method to inspect elements styled using pseudo-classes (such as :hover
I am looking for a method to pass property itself to a function. Not
I'm looking for a method, or a way to detect clients using any type
I am looking for method for parsing route path like this: ActionController::Routing.new(post_path).parse #=> {:controller
I've been looking at writing a Textile parser using Scala's parser combinator library (basically
So I am using writing this method, which work fine in term of looking
I'm looking for an alternative for CSharpCodeProvider.Parse . The method was supposed to parse
I'm looking to parse some formatting out of a field using javascript. My rule

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.