Hi I'm opening and closing an input and an output file as "infile" and "outfile" and using them in a command line argument to extract specific content from one file to another. However the infile content is a list of integers and as I now know I have to turn them to strings to complete the task...
for lines in infile:
words=lines.split("\t")
wated=words[15]
if wated == "559292":
dataA.append(str(words[1]))#attempt to write list of integers as strings to file
outfile.write(dataA+'n')#'+n' apparently needed for this process.
However I keep getting the error:
TypeError:can only concatenate list (not "str") to list
When I try it without the "+'n'":
TypeError: expected a character buffer object