I have the following code in php:
<?php
exec("exec.bat");
$archivo = file_get_contents("result.txt"); //Guardamos archivo.txt en $archivo
$archivo = ucfirst($archivo); //Le damos un poco de formato
$archivo = nl2br($archivo); //Transforma todos los saltos de linea en tag <br/>
echo "<strong>Archivo de texto result.txt:</strong> ";
echo $archivo;
?>
Where what I do is run a .bat that I have in my root directory and that generates a file that is as follows:
Now I need to be able to read the file so that I can select column 3 of the last row for example.
I hope you can help me.