Ну, вы не получаете никаких данных от Google Finance, так как он защищен от SSL.Следовательно, вы должны добавить необходимые опции ssl к curl, чтобы получить текст.Смотрите исправленный код.
$handle = curl_init();
$url = "https://finance.yahoo.com/";
// Set the url
curl_setopt($handle, CURLOPT_URL, $url);
// Set the result output to be a string.
curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($handle, CURLOPT_SSL_VERIFYHOST, 2);
$output=curl_exec($handle);
curl_close($handle);
$myFile = "myfile.txt";
file_put_contents($myFile,$output);
$lines = file($myFile);//file in to an array
echo $lines[114]; // displays line 114 which has some text