May-09-2020, 03:26 PM
Hi,
The first question before 1-2-3 is about the extra line.
I suspect that you are reading some CRLF from the old file.
In python they call that newline.
You may try to read the row and then do:
row = row[:-1] that takes away the old escape sequence \n
1) Would be simpler to answer if the directory contains only files
that need to be transformed, or other stuff that looks like that.
Paul
The first question before 1-2-3 is about the extra line.
I suspect that you are reading some CRLF from the old file.
In python they call that newline.
You may try to read the row and then do:
row = row[:-1] that takes away the old escape sequence \n
1) Would be simpler to answer if the directory contains only files
that need to be transformed, or other stuff that looks like that.
Paul