Hi, Part of my script is taking values and putting them to a text file delimited by tabs. So I have this:
for linesplit in fileList:
for i in range (0, len(linesplit)):
t.write (linesplit[i]+'\t')
I get as an output in the file what I expect in the first line but in the following lines they all start with a \t in them, like is:
value1 value2 value3
value1 value2 value3
value1 value2 value3
Also, why don't I need to add a t.write('\n') after the second FOR loop to create the newlines? I would expect the code above to produce one long line of tab separated values but it doesn't. If I include the t.write('\n') then the tabs issue is resolved but I get double '\n'...