in reply to Get only 1KB from text File
use strict; use warnings; open FILE, "<file"; my $string; sysread(FILE, $string, 1024); print length($string); [download]