Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

carriage return and a linefeed character

$
0
0

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.



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>