R.Wieser
2019-08-16 08:43:44 UTC
Hello all,
Just now I opened a textfile for append and add some content. To my
surprise the EOF (0x1A, Ctrl-Z) char that was terminating the origional file
was still there, with the appended content after it.
I've taken another look at how I should be using the 'opentextfile' method,
but cannot find anything in regard to how to handle an (terminating) EOF
char.
Currently I've changed the script to a read all -> strip EOF -> append
content -> write all sequence, but would like to know if I can just, you
know, /append/ to the file.
Regards,
Rudy Wieser
Just now I opened a textfile for append and add some content. To my
surprise the EOF (0x1A, Ctrl-Z) char that was terminating the origional file
was still there, with the appended content after it.
I've taken another look at how I should be using the 'opentextfile' method,
but cannot find anything in regard to how to handle an (terminating) EOF
char.
Currently I've changed the script to a read all -> strip EOF -> append
content -> write all sequence, but would like to know if I can just, you
know, /append/ to the file.
Regards,
Rudy Wieser