Maybe these are not the best methods to do really large text files...
The best solution is to index the file and jump directly to a line you want.
Or you can use the DBM access method to do the same...a simpler is of course
the indexing method and takes minimal memory...
sub build_idx{
my $
Maybe these are not the best methods to do really large text files...
The best solution is to index the file and jump directly to a line you want.
Or you can use the DBM access method to do the same...a simpler is of course
the indexing method and takes minimal memory...
sub build_idx{
my $
On Fri, 8 Feb 2002, Octavian Rasnita wrote:
> To store the file in an array, then to insert the changed value in that
> array, and then to write that array to the file, or to use a temporary file
> to store each line from the source file and twhen I want to modify a line, I
> have just to insert
Hi all,
I want to read a text file line by line and to make some changes in some
lines.
Which method do you recommend?
To store the file in an array, then to insert the changed value in that
array, and then to write that array to the file, or to use a temporary file
to store each line from the so