dirkheld wrote:

> f=open('/User/home/Documents/programming/python/test.txt','w')
>     for x in range(len(names)):
>         f.write(tags[x])
>     f.close()

Definitely consider the Python tutorial.

Also, please provide working code examples. I don't think yours will
work ;)

names = ['John','Steve','asimov','fred','jim']
f = open('/User/home/Documents/programming/python/test.txt','w')
f.write('\t'.join(names))
f.close()

A better alternative could be the csv module.

Regards,


Björn


-- 
BOFH excuse #388:

Bad user karma.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to