Oct-27-2017, 08:26 AM
'wt' was foreign to me, I had at some point assumed that the file modes
were the same as 'C' file modes, but then saw the python 'wt' mode after my post.
Learned something new!
That being the case, change writelines to write, writelines expects a list of strings,
while write expects a single string.
were the same as 'C' file modes, but then saw the python 'wt' mode after my post.
Learned something new!
That being the case, change writelines to write, writelines expects a list of strings,
while write expects a single string.