February 10th, 2012, 05:22 PM
Efficient Text File parser
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
TEXT: text with multiple lines
TEXT: some more text
PAGENUMBER: 2 TEXT: random te:xt here with colon just to add some spice
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,
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!