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

Re: Transfer a file via FTP

Thread Previous | Thread Next
From:
Jenda Krynicky
Date:
March 29, 2002 05:13
Subject:
Re: Transfer a file via FTP
Message ID:
3CA4766D.19066.32E954A@localhost
From:           	Ahmed Moustafa <amoustafa@pobox.com>
> 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.

Jenda

=========== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==========
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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About