Quantcast
Channel: How to change Unix Line feed to Windows Line Feed with C# - Stack Overflow
Browsing all 2 articles
Browse latest 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 all 2 articles
Browse latest View live




Latest Images