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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:06:15+00:00 2026-05-28T17:06:15+00:00

I am working on a parser which parses delimited text. Example position 1-10: field

  • 0

I am working on a parser which parses delimited text. Example

position 1-10: field a
position 11-20: field b
position 21-30: field c
etc

Any design patterns I can use to implement? I believe I should be using Visitor pattern

  • 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-28T17:06:16+00:00Added an answer on May 28, 2026 at 5:06 pm

    Visitor pattern?! Just read the file line by line and use substring():

    String line = //...
    String a = line.substring(0, 10);
    String b = line.substring(10, 20);
    String c = line.substring(20, 30);
    

    Am I missing something? Can you clarify your question?

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

Sidebar

Related Questions

I'm working on a parser in php which is designed to extract MySQL records
I'm currently working with a tablesorter table in which I need to use a
I'm trying to contruct a parser in scala which can parse simple SQL-like strings.
I'm working on a project which parses information with a NLP library from classified
I'm building a parser in antlr which compiles to a working java target. When
I am working with a web application which accepts json object, parses it and
I'm working on a parser and I'm really frustrated. In the language, we can
I am working on a little python code which parses the response from the
I'm working on a web-site which parses coupon sites and lists those coupons. There
I am working on a file management application which parses excel files from the

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.