Results 1 to 3 of 3
  1. #1
    hamidsharifi is offline Member
    Join Date
    Feb 2011
    Rep Power

    Smile Find and Replace in Text File


    I have a text file with large content in it .

    how i can find specified word in this text file and replace it word with another word in entire file ?

    please help me

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    As this question has nothing to do with Swing and so is in the wrong forum, I will move it to the New To Java section.

    Poster, have you tried reading in the file, and writing it out to a new file, changing the word when you get to it. Then deleting the original file and renaming the new file?

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power

Similar Threads

  1. replace a string using Text i/o
    By PureAwesomeness in forum New To Java
    Replies: 9
    Last Post: 07-06-2009, 02:38 AM
  2. find and replace text from a text file
    By gezzel in forum New To Java
    Replies: 2
    Last Post: 09-19-2008, 04:04 PM
  3. Find and replace ( in a String
    By hamish10101 in forum New To Java
    Replies: 6
    Last Post: 01-17-2008, 05:51 AM
  4. Find and Replace in JTable
    By look4 in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2007, 12:27 AM
  5. Using Find And Replace In Eclipse IDE
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 04-26-2007, 10:15 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