develooper Front page | perl.beginners | Postings from March 2002

Re: Transfer a file via FTP

Thread Previous | Thread Next
Jenda Krynicky
March 29, 2002 05:13
Re: Transfer a file via FTP
Message ID:
From:           	Ahmed Moustafa <>
> When a file is transferred via FTP, when is the EOF character added to
> the file (only at the end of transmission or also during the
> transferring)?

Usualy not at all.
If you transfer the file in binary mode NOTHING will be modified in it 
at all. If you transfer it in ascii mode then only the end of line 
characters will be converted to those your OS uses (well in case 
the server uses EBCDIC and the client ASCII or the other way 
around I believe this is also converted. But you are unlikely to 
encounter EBCDIC these days.)

Anyway when reading file you don't need any end of line character, 
the system KNOWs how long is the file at the moment and 
<FILEHANDLE> will return undef if you've read all there is.


=========== == ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
					--- me

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About