open (FILE, "filename.txt") or die "Could not open filename.txt"; # Store the contents of the file in an array, one line per element my @array = <FILE>; close FILE; # Print line 10 print $array[10];
In reply to Re: How do I seek to a certain position in a file?
by GhodMode
in thread How do I seek to a certain position in a file?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |