$array_tmp = file('configfile.txt');
echo $array_tmp[0]; //riga 1
echo $array_tmp[1]; //riga 2