Hi guys!
I just arrived here on this forum, and I hope you people can help me a bit with Python.
What I want is to edit a few large text files, by adding in front of each row the concerning rownumber. What I find out myself (not much..) is:
infile = open('infile.txt')
outfile = open('outfile.txt','w')
for i in range(len(infile)):
infile[i] = str(i) + ' ' + cb[i]
infile.close()
outfile.close()
Am I close :) ? Thanks for helping!