in reply to Slurping file into array VS Process file line-by-line
Read is also a possibility if you're trying to find a specific string in the file, and don't want to have to do the same search on many different lines of a relatively small file (few MB or less). Read gives slightly better performance than either array / line based option.