Cteni binarniho souboru
Petr Sturc
sturc na fzu.cz
Čtvrtek Listopad 25 17:05:25 MET 1999
On 25 Nov 1999 13:07:13 +0100, Vladimír Fux <fux na infoline.cz> wrote:
>open(A,"<$soubor);
>sysread(A,$obsah,200); # zajima mne prvnich 200 byte
>close (A);
>print length(A),"\n";
zrejme jste zamyslel length($obsah),ne?
>
>dostanu
>48
Nedelal jste predtim uz nejake cteni? Ze by treba
sysread uz mel nejakej offset a zbylo na nej jen 48
bajtiku.
Nepomuze binmode?
Petr Sturc
--
Petr Sturc <sturc na fzu.cz> http://www.fzu.cz/~sturc/
Dept. of Magnetism, Institute of Physics ASCR, Prague,Czech Rep.
Další informace o konferenci Perl