All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
$lines = file($path); if ($lines === false) die("Can't open file $path");
with open(path) as f: lines = f.readlines()
lines = open(path).readlines
Dim lines = IO.File.ReadAllLines(path).ToList