The problem was when 'name of data file' was replaced, it overwrote the '\r'.
There was also an issue in CleanUpLineEncoding, a '\n' needs to always be added to the string. Only strings with '\r\r\n' were correct previously. Now all lines should end with '\r\n'.
I also refactored the repeated code to the common super class.
The problem was when 'name of data file' was replaced, it overwrote the '\r'.
There was also an issue in CleanUpLineEncoding, a '\n' needs to always be added to the string. Only strings with '\r\r\n' were correct previously. Now all lines should end with '\r\n'.
I also refactored the repeated code to the common super class.