vodkadrinker
Technical User
I am currently looking at opening large files, wondered if someone could answer a query.
a) When you use "open" does this read the whole file in before I start reading line by line?
b) If it does open the whole file is there a simple way to only open the last part of the file?
Perl:
open (FILE, '<', $file) or die "$!\n";
while (<FILE>) {
*Do stuff with line
}
a) When you use "open" does this read the whole file in before I start reading line by line?
b) If it does open the whole file is there a simple way to only open the last part of the file?