aspose file tools
The moose likes Java in General and the fly likes SFTP New Line Character (Unix to Windows) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "SFTP New Line Character (Unix to Windows)" Watch "SFTP New Line Character (Unix to Windows)" New topic
Author

SFTP New Line Character (Unix to Windows)

Padmanabhan Viswanathan
Greenhorn

Joined: Jan 14, 2010
Posts: 1
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
Pratap koritala
Ranch Hand

Joined: Sep 27, 2006
Posts: 251
I believe there are a lot of other libraries for this functionality... try using them
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SFTP New Line Character (Unix to Windows)
 
Similar Threads
sftp
newline characters
specifying End of Line characters in servlets
Need Printwriter help!!!!
Remove ^M character in text file