Guys
I have written a script that exports data to a file in a comma-separated CSV format but one particular entry always has a carriage return on the end of it. As a result, the CSV file has the contents over two lines instead of one.
Please can someone advise how I can take a string and strip the carriage return, even if it is just removing the last character of the value (which is more than likely where the carriage return is).
Thanks
--------------------------------------
"Insert funny comment in here!"
--------------------------------------
I have written a script that exports data to a file in a comma-separated CSV format but one particular entry always has a carriage return on the end of it. As a result, the CSV file has the contents over two lines instead of one.
Please can someone advise how I can take a string and strip the carriage return, even if it is just removing the last character of the value (which is more than likely where the carriage return is).
Thanks
--------------------------------------
"Insert funny comment in here!"
--------------------------------------