Solution
This is due to one of the optional settings on the File I/O functions
Convert EOL.By disabling this function you'll get the correct output values.
Sometimes, when flattening data to a string, the resulting string may contain characters such as "/r" "/n" or "/r/n".
These are termination characters and are used to indicate a line break in text files.
The
Convert EOL function will convert any termination character to one that is supported by your OS. As the Write to text file function is supported on different platforms, this helps combat cross-platform issues.