in reply to Get only 1KB from text File
Hi
User Input Record Separator ($/)
local $/=\"1024"; open FILE, 'c:\space\sp.txt' or die $!; $_=<FILE>; #<IT WILL READ ONLY 1KB>
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Get only 1KB from text File
by graff (Chancellor) on Oct 15, 2005 at 13:54 UTC |
In Section
Seekers of Perl Wisdom