0

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/OCR Commented Jul 25, 2010 at 3:05
  • Well Thanks James its a Nice link.. I was unaware of the information it provided. Nice.. Commented Jul 29, 2010 at 15:51

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.