Quantcast
Channel: How to change Unix Line feed to Windows Line Feed with C# - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Noctis for How to change Unix Line feed to Windows Line Feed with C#

Because you are writing the string and overwriting it. Try this: string[] filePaths = Directory.GetFiles(@"c:\textfiles\", "*.txt"); foreach (string file in filePaths) { string[] lines =...

View Article


How to change Unix Line feed to Windows Line Feed with C#

I'm trying to write a unix2dos program to alter the line feeds of text files. The problem is instead of altering the contents of a text file, the file name was appended instead. using System; using...

View Article

Browsing latest articles
Browse All 2 View Live


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