Results 1 to 3 of 3
  1. #1
    gezzel is offline Member
    Join Date
    Sep 2008
    Rep Power

    Default find and replace text from a text file

    Hi I'm trying to create a java program that reads in a text file, and replaces
    " & " with " and "
    and "&" with " and "
    I found a program that does pretty much what i need but having problems running it under java 1_6_10.

    i'm eventually trying to create a gui where the user can select the file through a file chooser, then click a button that runs my java program to format the file correctly.

    I was wondering if anyone could point me to a program that does this? thanks

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    It will be needful to write this program yourself
    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

  3. #3
    tOpach is offline Member
    Join Date
    Sep 2008
    Rep Power


    You can use:
    replace.("thing that you want to get ","thing that you want to put);:D


    Kind regard.
    A stitch in time saves nine:D

Similar Threads

  1. count character in text file as input file
    By aNNuur in forum New To Java
    Replies: 7
    Last Post: 03-25-2010, 05:01 PM
  2. Replies: 0
    Last Post: 05-26-2008, 05:26 PM
  3. How to read a text file from a Java Archive File
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-08-2008, 10:13 AM
  4. Find and replace ( in a String
    By hamish10101 in forum New To Java
    Replies: 6
    Last Post: 01-17-2008, 06:51 AM
  5. Find and Replace in JTable
    By look4 in forum AWT / Swing
    Replies: 2
    Last Post: 11-24-2007, 01:27 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