View Single Post
  #2 (permalink)  
Old 11-21-2008, 05:54 AM
Eranga's Avatar
Eranga Eranga is offline
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Is that file contain those text as a paragraph or as a collections of lines?

One of the simple way I can see is, read a line and split/tokernize into words based on the space character. So the result you have is in an array. Once you found the delimiters store the result in another array and retrieve a string from there, and do the process.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Reply With Quote