I worked on pyton and with some help of wise guys (thanks for them) I can have script that works perfect for the function which I was looking for. I would like to share my script:

Code:
import sys

def transformer(word):
    result = []
    for i in xrange(0,100):
        result.append(word + str(i))
    return result

def main():
    if len(sys.argv) != 3:
        print 'Usage: python ' + sys.argv[0] + ' input.txt output.txt'
        sys.exit(1)
    try:
        i = open(sys.argv[1],'r')
    except:
        print 'Error: file not found (' + sys.argv[1] + ')'
        sys.exit(1)
    o = open(sys.argv[2],'w')
    for line in i.xreadlines():
        o.write('\n'.join(transformer(line.strip())))
    o.write('\n')

if __name__ == '__main__':
    main()


now I am thinking about an other code which will solve all problems about generating wordlist from a wordlist:

If we have two different text files like one.txt and two.txt,
one.txt contains;
john
tom
william
..
in it. And two.txt has
apple
orange
...

The command we need is a function which combines these two files and creates a third text file like;
johnapple
johnorange
tomapple
tomaorange
williamapple
williamorange
...


Which kind of changes do I need to make in my code to do so. Is it hard to do?