Whats the best way to parse a file in Java
Posted
by chitresh
on Stack Overflow
See other posts from Stack Overflow
or by chitresh
Published on 2010-06-17T20:25:03Z
Indexed on
2010/06/17
20:33 UTC
Read the original article
Hit count: 120
java
Hi All,
I have a text file with Tag - Value format data. I want to parse this file to form a Trie. What will be the best approach?
Sample of File: (String inside "" is a tag and '#' is used to comment the line.)
#Hi, this is a sample file.
"abcd" = 12;
"abcde" = 16;
"http" = 32;
"sip" = 21;
© Stack Overflow or respective owner