ftp file to Windows

I need to ftp Unix log file to Windows and using VB code to read file.

After I ftped my Unix log file to Windows side, I found out that there is no carriage return, so I turned off 'cr' when ftp the file.

But my VB code can't see "EOF" signal from this file, should I just add additional line at the end of my unix file to avoid the problem or is there better way to solve the problem?

Thanks for the help!

Unix has a utility variously named ux2dos to unix2dos.

If you run this utlity on a file on the unix box, it makes the file look like a windows file, with carriage return/line feed to mark the end of a line.

Then you can ftp it.

Or just FTP the file in ASCII mode.

Cheers
ZB