Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-10-2012, 09:17 PM   PM User | #1
Jack Higgins
New to the CF scene

 
Join Date: Feb 2012
Location: Belfast, Ireland
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Jack Higgins is an unknown quantity at this point
Parsing Text File

Hi,

I was wondering if I could get some advice on the most efficient way I can parse a text file which contains the following pair:

<String LABEL:> Paragraph

For example:

PAGENUMBER: 1
TEXT: text with multiple lines
TEXT: some more text
PAGENUMBER: 2 TEXT: random te:xt here with colon just to add some spice
PAGENUMBER: 3

I was wondering what might be the best way to do this: I could tokenize on ":" but only if it matches with a specific label like TEXT or PAGENUMBER.

Thank you for your help,
Jack Higgins.
Jack Higgins is offline   Reply With Quote
Reply

Bookmarks

Tags
java, parse, text file

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:25 AM.


Advertisement
Log in to turn off these ads.