W
Wes Gamble
I need to write a CSV file and I know that I always want Windows style
newlines on it (for import into Excel).
I want to make sure that every line is terminated with "\r\n" (CRLF)
regardless of platform. How do I write the "\n" when the code executes
on Windows without ending up with \r\r\n at the end of every line?
I've tried using <<, write, and syswrite against my IO (file) object.
How do I just write the CR and LF characters to my file?
Thanks,
Wes
newlines on it (for import into Excel).
I want to make sure that every line is terminated with "\r\n" (CRLF)
regardless of platform. How do I write the "\n" when the code executes
on Windows without ending up with \r\r\n at the end of every line?
I've tried using <<, write, and syswrite against my IO (file) object.
How do I just write the CR and LF characters to my file?
Thanks,
Wes