You are adding a line feed ('\n') to the write buffer here:
for row in xdata: f.write('%s\n' % row)so you are not writing out what you read in.
Reading and writing to text file has format change
|
|
Messages In This Thread |
Reading and writing to text file has format change - by cheerful - Dec-14-2017, 02:57 AM
RE: Reading and writing to text file has format change - by Larz60+ - Dec-14-2017, 03:18 AM
RE: Reading and writing to text file has format change - by cheerful - Dec-21-2017, 05:47 AM
RE: Reading and writing to text file has format change - by Larz60+ - Dec-21-2017, 07:53 AM
|