Topic "carriage return added to file on file transfer"

Author Message
CR-GUY

Guest


i'm noticing that a carriage return is being added at the very end of all text files when i transfer a file from the PC to my host. is there anyway to fix this?

thanks
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
I can be caused by ascii more transfer. Try to switch to binary. Please read documentation.
_________________
Martin Prikryl
Guest




Thanks for your reply. If i try binary mode i will get a carriage return after every line in the text file, ascii mode puts one carriage return at the end of the very last line of the text file. i've tested transfering that same text file with normal FTP and it doesn't add that carriage return. am i doing something wrong?

Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Can you mail an example of the file you are having problem with?
_________________
Martin Prikryl
CR_Err

Guest


prikryl wrote:
Can you mail an example of the file you are having problem with?


Could you please let me know if you were able to resolve as having same issue - Have changed Transmission mode to all 3 without success Confused
Temistokles

Guest


Has the problem already been resolved? For me (version 4.1.7), it still exists.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Temistokles wrote:
Has the problem already been resolved? For me (version 4.1.7), it still exists.

Can you give me more details?
_________________
Martin Prikryl
sameer

Guest


I have a text file in windows that I am transferring to Linux using batch script. I have transfer option binary set but still a empty newline is added at the end of the file. Not sure how to deal with this?

I have tried with both winscp 5.5.5 and 4.2.7
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
sameer wrote:
I have a text file in windows that I am transferring to Linux using batch script. I have transfer option binary set but still a empty newline is added at the end of the file. Not sure how to deal with this?

I have tried with both winscp 5.5.5 and 4.2.7

Duplicate post: https://winscp.net/forum/viewtopic.php?p=52397#52397
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License