Ver originalfunction myread($file){$fo = fopen($file,"r");$c = fread($fo,filesize($file));fclose($fo);return $c;} $data = myread(/*some dir*/);$theLine = explode("\n", $data)[4];$ammount = explode(" ", $theLine)[sizeof(explode(" ", $theLine))-1];