As you are appending, perhaps the file originally terminates with a solo carriage return? Hexdump the file to see for sure. Alternatively, try with an overwrite instead of an append to see if the problem still exists.
In reply to Re: String differs from printing to STDOUT and printing to file
by hippo
in thread String differs from printing to STDOUT and printing to file
by cboesch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |