I need to format my text file for UNIX use. To my understanding, windows uses both a carriage return and a linefeed character to represent line breaks. My program is written with \n for line breaks.
What can I use in place of \n so that it only has line breaks suitable for UNIX?
I know there is a dos2unix command, but I don't have access to a UNIX machine. Also, I am trying to find a solution that takes care of this situation within my code and not adding an extra external step to producing the file.
Thanks.
-Nothing to see. Move along.