take specific word in textfile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lekshminair
    New Member
    • Jan 2007
    • 3

    take specific word in textfile

    [U]can u solve it[/U]
    I am trying to take a specific word in textfile.
    for example:
    new .txt

    "Please follow these guidelines when posting questions. Submitting clear and concise questions allows those reading to understand your problem and respond easily."

    I this text file extract with "ing"format t words
    ie,posting
    submitting
    reading

    into another textfile
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #2
    have a look at the Java tutorial on Strings
    http://java.sun.com/docs/books/tutorial/java/data/strings.html

    which discusses how you find substrings, etc

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by lekshminair
      [U]can u solve it[/U]
      I am trying to take a specific word in textfile.
      for example:
      new .txt

      "Please follow these guidelines when posting questions. Submitting clear and concise questions allows those reading to understand your problem and respond easily."

      I this text file extract with "ing"format t words
      ie,posting
      submitting
      reading

      into another textfile
      Use a regular expressions or the string.endsWith method.

      Comment

      Working...