could you point me to an example where I can find more information about how to parse a text file in Java and extracting a particular String or reg ex out of It.
2
-
Have you looked at this? bitquill.net/trac/wiki/Android/OCRJames Black– James Black2010-07-25 03:05:52 +00:00Commented Jul 25, 2010 at 3:05
-
Well Thanks James its a Nice link.. I was unaware of the information it provided. Nice..success_anil– success_anil2010-07-29 15:51:12 +00:00Commented Jul 29, 2010 at 15:51
Add a comment
|
1 Answer
Checkout Scanner for reading the text file: http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html
Check out StringTokenizer for parsing strings: http://docs.oracle.com/javase/7/docs/api/java/util/StringTokenizer.html
Checkout String's split method: http://docs.oracle.com/javase/6/docs/api/java/lang/String.html
Here is some examples, http://www.javapractices.com/topic/TopicAction.do?Id=42