In a C# module, I want to transfer files from Windows to Unix using Tectia. But the problem is when these files are transferred(Ascii or Binary mode both) and opened using VI editor we get ^M characters.
I searched about this but the solutions are to remove these ^M characters after the files are transferred using utilites. Is there any way that these ^M characters do not appear in the first place.
Is there any option to have a workaround in code before sending these files?
In a C# module, I want to transfer files from Windows to Unix using
Share
Thanks for all the help everyone. I solved this problem using a workaround.
Windows uses CR+LF (\r\n) as end-of-line & Unix uses LF (\n) as end-of-line.I took the Windows file and replaced the occurrence of CR+LF(\r\n) with LF(\n) in code itself without any utility.This made the file compatible for Unix systems and then I transferred the file using SFTP and it worked on Unix without ^M characters.