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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:20:02+00:00 2026-05-30T17:20:02+00:00

I am currently building an app which will be used to time a race.

  • 0

I am currently building an app which will be used to time a race.

All the times are saved in a .txt file in this format.

STARTOFEVENT,20/11/2011 11:04:58
0,20/11/2011 11:05:14
1,20/11/2011 11:05:17,00:00:02
2,20/11/2011 11:05:19,00:00:04
3,20/11/2011 11:05:20,00:00:05
4,20/11/2011 11:05:21,00:00:06
5,20/11/2011 11:05:22,00:00:07

What I need help with is displaying the position number (column 1) and finish time (column 3) in a textView / editText as the results come in.

I have tried to a bit of code for parsing CSV files but with no luck.

  • 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-30T17:20:04+00:00Added an answer on May 30, 2026 at 5:20 pm

    Example of split(...)…

    String csvRecord = "1,20/11/2011 11:05:17,00:00:02";
    String[] csvFields = csvRecord.split(",");
    

    Each part of the string csvRecord separated by a comma is allocated to an element of the csvFields array. The number of array elements is dependent on the number of csv fields and is handled by the split(...) method which dynamically creates the array with the correct number.

    From the above, csvFields[0] will be 1 with csvFields[1] as 20/11/2011 11:05:17 and csvFields[2] will be 00:00:02

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

Sidebar

Related Questions

I am building an HTML file which will later be emailed through my app.
I'm currently building a web app (atop Ruby on Rails), which will let users
I'm currently building an app that will parse all of the Audit entries in
I'm building a small PHP/Javascript app which will do some processing for all cities
I'm building a demo app in WPF, which is new to me. I'm currently
I'm building an app that currently has 3 ViewControllers. One of them is used
I'm currently building an iPhone app that will display data from an NSMutableArray called
I'm currently building a web app that will take some info from a database
How to secure WCF service which an Android app will use? Currently we are
I'm building a html app which will be loaded in a web view in

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.