Search:

Type: Posts; User: Chris.Brown.SPE

Search: Search took 0.12 seconds.

  1. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    Ah, your concern is that the file is not being wiped prior to output being printed. Otherwise an input file of "this that integer something else" would turn into "this that integer something elsethis...
  2. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    Yup, that works. Glad we could help!
  3. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    So are we done here or still having a problem?
  4. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    Assuming his array is a list of words in the file then my previous post is valid. Just move where you are replacing old with new into the for loop and have it act on the actual array item (not itself...
  5. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    Why are you doing the replace before the loop? This should be done in the loop on each array piece as it is added to the string. Get array piece, replace words, add to output. Then at the end just...
  6. Replies
    20
    Views
    1,056

    [SOLVED] Re: to replace a word in file

    What is the text of the original input file?
Results 1 to 6 of 6