Results 1 to 3 of 3

Thread: Word

  1. #1
    right2001 is offline Member
    Join Date
    Feb 2009
    Posts
    25
    Rep Power
    0

    Default Word

    Hi all,

    I try to modify a text file parsing word by word. That is, I'm gonna form a test suit for parser, adding white space after some specific expressions. Does anybody give me an idea to implement that?

    Your help is appreciated.

    Murat.

  2. #2
    Mr.Beans's Avatar
    Mr.Beans is offline Senior Member
    Join Date
    Apr 2009
    Location
    Virginia Beach, Virginia
    Posts
    149
    Rep Power
    0

    Default

    You could iterate through the file until you find an element then add characters as needed. Or you could take the entire file in as a String and make use of the replace method. Another option would be to look into regular expressions.

  3. #3
    right2001 is offline Member
    Join Date
    Feb 2009
    Posts
    25
    Rep Power
    0

    Default

    So do you recommend me to use scanner package to search over the file?

Similar Threads

  1. Word Jumbler
    By wethekings in forum New To Java
    Replies: 7
    Last Post: 02-20-2009, 04:57 AM
  2. Word to xml Conversion
    By kushagra in forum Advanced Java
    Replies: 3
    Last Post: 10-16-2008, 08:23 AM
  3. Word Frequency
    By capu in forum Advanced Java
    Replies: 2
    Last Post: 10-09-2008, 02:03 PM
  4. Word OLE
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:33 PM
  5. Word Scramble
    By lk9865 in forum New To Java
    Replies: 5
    Last Post: 11-17-2007, 02:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •