Topic "Number of line changes after copying data file"

Author Message


I copied a data file with 162500 lines from local Windows PC to a Linux supercomputer using Winscp but found the line number became 162505!!! Shocked I copied it back from Linux to windows, and found the line number became 162500 again!! Laughing This is really strange, but because of this problem, my program which reads the data file would not run on the supercomputer. Crying or Very sad It will be great if you could give me some advice on why this happens and how it can be possibly fixed. Many thanks! Very Happy
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27083
Location: Prague, Czechia
MY guess is that ascii/text transfer mode is involved. Try to switch to binary mode.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License