Y
Hacker News
new
|
ask
|
show
|
jobs
by
astrodev
3448 days ago
Even simpler, and handles the different new line characters:
$l = file('in.txt', FILE_IGNORE_NEW_LINES);