space has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks
I have a text file which size is 12 KB. But I need 1 KB at the beginning.
open FILE, 'c:\space\sp.txt' or die $!; $_=<FILE>; ## It'll store whole text, but i need 1KB only
Please guide me.
Thank
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get only 1KB from text File
by gopalr (Priest) on Oct 15, 2005 at 06:13 UTC | |
by graff (Chancellor) on Oct 15, 2005 at 13:54 UTC | |
|
Re: Get only 1KB from text File
by Skeeve (Parson) on Oct 15, 2005 at 06:54 UTC | |
|
Re: Get only 1KB from text File
by saintmike (Vicar) on Oct 15, 2005 at 06:20 UTC | |
|
Re: Get only 1KB from text File
by pg (Canon) on Oct 15, 2005 at 17:21 UTC |