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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:37:49+00:00 2026-05-24T22:37:49+00:00

I have about 100 different text files in the same format. Each file has

  • 0

I have about 100 different text files in the same format. Each file has observations about certain events at certain time periods for a particular person. I am trying to parse out the relevant information for a few individuals for each of the different text files. Ideally, I want to get parse through all this information and create a CSV file (eventually to be imported into Excel) with all the information I need from ALL the text files. Any help/ideas would be greatly appreciated. I would prefer to use java…but any simpler methods are appreciated.

The log files are structured as below: changed data to preserve private information

|||ID||NAME||TIME||FIRSTMEASURE^DATA||SECONDMEASURE^DATA|| etc…

TIME appears like 20110825111501 for 2011, 08/25 11:15:01 AM

  • 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-24T22:37:50+00:00Added an answer on May 24, 2026 at 10:37 pm

    Here are the steps in Java:

    1. Open the file using FileReader
    2. You could also wrapped the FileReader with BufferedReader and use readLine() method to read the file line by line
    3. For each line you need to parse it. You know best the data definition of each line, to help you might be able to use various String functions or Java Regex
    4. You could do the same thing for the Date. Check if you could utilize DateFormat
    5. Once you parse the data, you could start building your CSV File using CSVParser mentioned above or write it your own using FileOutputStream
    6. When you are ready to to convert to Excel, you could use Apache POI for Excel

    Let me know if you need further clarification

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

Sidebar

Related Questions

Ok so say I have 100 rows to insert and each row has about
I have a relational database with about 100 tables. Each table has unique, numerical,
I have about 200 Excel files that are in standard Excel 2003 format. I
I have setup an application to parse about 3000 files a day where each
I have an html form (each form has different page, according to date), with
I have a basic PDF file that I has 5 different blank content areas
I have about 100 Word documents which include transliteration of foreign names. The author
At my workplace we have one large Subversion repository which holds about 100 projects.
Preliminary : I have an application which maintains a thread pool of about 100
i, I have to run about a 100 tests on my program and doing

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.