Hi,
I need to read in all the contents of a file.
I have got this far.
open(afile, "<filename>" or die "";
read(afile, my $buffer, 1000) or die "";
close afile;
However, I don't want to just read in 1000 I want to read in the all the contents of the file.
How would I do this?
Cheers
Rob
I need to read in all the contents of a file.
I have got this far.
open(afile, "<filename>" or die "";
read(afile, my $buffer, 1000) or die "";
close afile;
However, I don't want to just read in 1000 I want to read in the all the contents of the file.
How would I do this?
Cheers
Rob