-
February 10th, 2012, 05:22 PM
#1
Efficient Text File parser
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|