I am using Zehon SFTP program(JAVA) to upload a text file from a UNIX server to a Windows server. The problem is that windows is unable to recognize the new line characters once the file has been transferred from UNIX . In Unix the new line is \n and in Windows it is \r\n.
During an FTP transfer if we set the transmission mode to ASCII, the system will take care of converting the new line characters based on the type of the recipient OS, but unfortunately, Zehon does not support this.
Is there any way by which we can use the Zehon approach and overcome this issue.
Thanks in advance
Joined: Sep 27, 2006
I believe there are a lot of other libraries for this functionality... try using them