1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Text File Editing Help Required.

Discussion in 'Content Management' started by coolvision, Jan 24, 2007.

  1. #1
    Hello Dears,
    I have hundereds of text files and every file have thousand of lines and there is only one word at each line. My problem is that I want to add a word with every word in files.
    Example:

    files contains a words

    hello
    digital
    google
    yahoo

    Now I want to add a word with every word like that:

    hellodear
    digitalpoint
    googleisbest
    yahoodotherest

    if your understad my problem plz reply me how can I edit all of my files bcoz manually editing will take very long times, bcoz there is about millions words in all files.

    Thanks in Advance.
     
    coolvision, Jan 24, 2007 IP
  2. mani

    mani Peon

    Messages:
    679
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #2
    a self made script can do it for you.. if you know some php, then go and learn File I/O ... when you got it... then its very easy .. just make an array of aditional words and pick up a line and join elements of array one by one on each line....
     
    mani, Jan 25, 2007 IP