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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:21:58+00:00 2026-05-23T11:21:58+00:00

In my application I have a simple logbook where the user can save simple

  • 0

In my application I have a simple logbook where the user can save simple posts about an event. The format is like this:

Date, duration(seconds), distance(km), a comment AND categories with a variable number between 0 – 4 AND circumstances/conditions with a variable number between 0 – 4

An example would be:

Header of CSV file
Date,Duration,Distance,Comment
Then multiple rows like this
07.02.11,7800,300,”A comment”
07.02.11,7800,300,”A comment”
07.02.11,7800,300,”A comment”

But how can I add the categories and conditions to this format and how would I know where in the categories/conditions end in the CSV if I at a later point in the application want to import the file again?

(I do not need help with how to save etc this to file, already done that, but I could need guidiance on how to format it, thank you)


(This seems pretty odd)

Header of CSV file
Date,Duration,Distance,Comment, Category, Category, Category, Category, Condition, Condition, Condition, Condition
Then multiple rows like this
07.02.11,7800,300,”A comment”, “Categoryname”, “Categoryname”, “Categoryname”,”Categoryname”, “Condtion”, “Condition”, “Condtion”, “Condition”

(Would this be better)

Header of CSV file
Date,Duration,Distance,Comment, Category, Condition
Then multiple rows like this
07.02.11,7800,300,”A comment”, “Multiple category names separted by -“, “Multiple condition names separted by -“

  • 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-23T11:21:58+00:00Added an answer on May 23, 2026 at 11:21 am

    I think you last proposal of separating conditions or categories using a special separator symbol (the hyphen in your example) is the right one.
    By the way I would suggest two extra things:

    1. use a less common separator, that is something you can forbid the user to use without limiting user choice; probably the hyphen is a character you don’t want to forbid, use a different sequence such as three pipes: ||| which is not common.

    2. if possible (but be careful in this case about final destination of the CSV file) you can avoid using the standard “comma separator”. The reason for this is that if comma is used inside the fields content, then this content must be separated by double quotes. This is some time problematic if you need to do some custom parsing by other software. Normally when I know that my CSV will not be used as source import from other software (e.g. Numbers or Excel) I prefer to use a different separator, e.g. a sequence of 2 hash (##) or something more “strange”. Note that in this case you are no more strict-CSV compliant! but there is some software, like OpenOffice, which is more flexible with this special formats.

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

Sidebar

Related Questions

I have simple web application based on JSP. Root of application looks like this:
I have simple application from this tutorial: WCF 4 Getting Started Tutorial How can
In my application I have a very simple association. A User has_many Emails, this
Say that I have simple command line application, that looks something like this #
I have simple application, that shows list of many items, where user can display
I have a simple application in which I need to let the user select
I have simple JSF application. Everything works fine, but not navigation. It behaves like
It is about WPF application which generates reports. Reports have simple structure: byte[] m_Data,
I have simple application. To be more specific this is Visual Studio Addin. Client
I have simple WCF Service Application (based on this tutorial : Getting Started ).

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.